My Excel sheet contains a table which fetches data from an outside source. I know I can refresh this data by right clicking the table and clicking "Refresh", but I want to be able to do this from inside my VBA code, so that I can force the data to be updated before performing certain calculations on it.
I have tried using Worksheets("Foo").Calculate as suggested by answers to similar questions, but that doesn't do the trick.
record a macro!