I am attempting to create a pivot table in Excel from data in a SAS table that will be saved to a drive. I am using SAS 9.4. I am attempting to do this in VBA; the reason I am using VBA is I would like an automated process to pull from a large data set to filter on before pulling the data into the Excel pivot table instead of exclusively filtering using the pivot table. Simply using the SAS Add-In in Excel won't work for what I'm trying to accomplish.