Automatic macro
Posted by Marcus Mansukhani on November 07, 2000 8:53 AM
I'm trying to set up a macro that will run automatically. The main function is for it to open two excel sheets and then close one of them and itself leaving just the third sheet open. Perhaps at the end minimising Excel.
So far I've got:
Sub Licence()
'
' Licence Macro
' Macro recorded 07/11/2000 by Marcus Mansukhani
'
'
ChDir "\\<servername>\systems"
Workbooks.Open Filename:="\\<servername>\Systems\Licence 1.xls"
Workbooks.Open Filename:="\\<servername>\systems\Licence.xls"
Range("C3").Select
End Sub
More than anything I'm trying to get the macro to start automatically. (It runs just fine)
FYI: The file "Licence 1.xls" is an export from MS Access and "Licence.xls" is a tidied version with a few calculations. I'm then pulling the file back into the Access DB. Crude but effective.