jonnywakey
Registered User.
- Local time
- Today, 17:33
- Joined
- Feb 2, 2009
- Messages
- 33
Hi I am hoping someone can help me with the following.
I have set up a Cmd Button on my Access Database which opens a main Excel Spreadsheet containing graphs (Pipeline Dashboard.xls).
My problem is that I have 5 other excel spreadsheets which feed the main spreadsheet.
How would I structure the VBA to open and refresh each of the 5 documents then close them (Visible False)? and then open the main Spreadsheet.
The code I have used to open the main spread is as follows:-
Private Sub Command9_Click()
Dim objXLApp As Object
Dim objXLBook As Object
Set objXLApp = CreateObject("Excel.Application")
Set objXLBook = objXLApp.Workbooks.Open("W:\Departmt\Continuous Improvement\Pipelines\Pipeline Dashboard.xls")
objXLApp.Application.Visible = True
End Sub
Any assistance would be gratefully received.
Thanks
Jonny
I have set up a Cmd Button on my Access Database which opens a main Excel Spreadsheet containing graphs (Pipeline Dashboard.xls).
My problem is that I have 5 other excel spreadsheets which feed the main spreadsheet.
How would I structure the VBA to open and refresh each of the 5 documents then close them (Visible False)? and then open the main Spreadsheet.
The code I have used to open the main spread is as follows:-
Private Sub Command9_Click()
Dim objXLApp As Object
Dim objXLBook As Object
Set objXLApp = CreateObject("Excel.Application")
Set objXLBook = objXLApp.Workbooks.Open("W:\Departmt\Continuous Improvement\Pipelines\Pipeline Dashboard.xls")
objXLApp.Application.Visible = True
End Sub
Any assistance would be gratefully received.
Thanks
Jonny