I have created a SQL view on the AS/400 called SHIPVIEW and I then am connecting to this view from Excel using an ODBC connection.
I have also verified that if the data in the view changes and I press the "Refresh All" in Excel under the Data tab that the data in Excel is also being updated correctly.
I now need to create some VBA code that when the workbook is opened or when the "Refresh All" is selected, that it kicks off the VBA code to do some calculations on the data that was just imported.
I found the below link, but I didn't have any luck getting it to work.
I'm new to VBA, so any answers would be welcomed!