Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Opening Excel Workbook

Status
Not open for further replies.

Londa1130

Technical User
Mar 25, 2004
15
US
I have to export information over from MsAccess to print in an Excel spreadsheet. I have a macro in place to automatically update the workbook, but would like to know if there is a way to have the book open automatically on its own. In the window task scheduler I have Excel scheduled to open at a certain time weekly and would the report to run itself.

I need something that opens to trigger the sub OpenMondayReport() but don't have a clude how to do this.

Sub OpenMondayReport()
Dim wkb As String

Filebase = "T:\Real Estate\MondayReports\Monday Reports.xls"
Workbooks.Open Filebase
End Sub

Any help with this would be greatly appreciated.
 
I would suggest coverting the macro to code, and inserting your open code after the update code. That is if you want it to open right after update.

misscrf

Management is doing things right, leadership is doing the right things
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top