Thank you so much for you response and for you continued help. Please bear with me as I mentioned I dont really know how the operators work when writing code.
Quote:
|
You might not even need VBA to do this. In the properties, you can set your Data Range or Pivot Table to automatically refresh when the workbook is opened. So that should be all you need.
|
So can you explain how this is done. Im sorry I dont really know. When you say properties I went under "file" "properties" and thats not where it is. How would I set this so that my Access data is refreshed each time it opens as you say. If this dosn;t work let me ask something about your second piece of advice.
Please clarify for me (sorry Im slow and new) if I wanted to use the "Workbook_Open()" code you suggest in the "ThisWorkbook module" procedure to refresh my data how would I add my RefreshAll macro to this.
Heres the Code that appears as you say .
Private Sub Workbook_Open()
End Sub
The heres the macro I have that refreshes all....
Sub RefreshAll()
'
' RefreshAll Macro
' Macro recorded 06/23/2010 by The City of Edmonton Refreshes Data from Access
'
'
ActiveWorkbook.RefreshAll
End Sub
So I am assuming I would copy and past this code to refresh all between the Workbook_Open code as you say to look like this
Private Sub Workbook_Open()
Sub RefreshAll()
'
' RefreshAll Macro
' Macro recorded 06/23/2010 by The City of Edmonton Refreshes Data from Access
'
'
ActiveWorkbook.RefreshAll
End Sub