Individually these 2 tables can be refreshed by right-clicking in them and selecting Refresh Data.
I want these tables to be automatically refreshed everytime BA refresh's it's data on the worksheet. I have the following code in the Worksheet that BA is downloading it's data too:
- Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("DataChange")) Is Nothing Then
MyMacro
End If
End Sub
..which basically operates a Macro Module ('MyMacro') everytime the BA data changes.
What code would the 'experts' suggest I use to make the 2 tables refresh everytime the BA data refresh's? Add code to the above or add code to the Macro Module?