Hello, I am creating a spreadsheet using PI data link that updates the values from tags grabbed from the pi archive. I am using Sampled Data to retrieve the values for the last 24 hour every hour. Currently when I hit Apply in the sampled data tab, the values in the spreadsheet update. However, I would like create a button in excel that does what the apply button does just on the spreadsheet itself. In short, how do I reference the pi datalink functions for sampled data in VBA?