Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Does anyone know if you can create a macro that is initiated when the
file is opened? I have a number of users that will need to work with an original (master) document. I want them to open the master file, and have a macro save the file as a new unique spreadsheet. I know how to do what I need from a macro, but I would like to have the macro run without being keyed in by the user. Any ideas? Thanks, TK |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Put the macro in a General module (not under ThisWorkbook and not under a
worksheet). Name it: Sub Auto_Open() It'll run each time excel opens the file--if the user allows macros to run. Cortez wrote: Does anyone know if you can create a macro that is initiated when the file is opened? I have a number of users that will need to work with an original (master) document. I want them to open the master file, and have a macro save the file as a new unique spreadsheet. I know how to do what I need from a macro, but I would like to have the macro run without being keyed in by the user. Any ideas? Thanks, TK -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Yes! See the following Microsoft web page:
http://office.microsoft.com/en-us/ex...346281033.aspx "Cortez" wrote: Does anyone know if you can create a macro that is initiated when the file is opened? I have a number of users that will need to work with an original (master) document. I want them to open the master file, and have a macro save the file as a new unique spreadsheet. I know how to do what I need from a macro, but I would like to have the macro run without being keyed in by the user. Any ideas? Thanks, TK |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mar 8, 2:13 pm, Lauren Giles
wrote: Yes! See the following Microsoft web page:http://office.microsoft.com/en-us/ex...346281033.aspx "Cortez" wrote: Does anyone know if you can create a macro that is initiated when the file is opened? I have a number of users that will need to work with an original (master) document. I want them to open the master file, and have a macro save the file as a new unique spreadsheet. I know how to do what I need from a macro, but I would like to have the macro run without being keyed in by the user. Any ideas? Thanks, TK Thanks Lauren and Dave. Exactly what I needed. TK |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can a macro be run on opening the file? | Excel Discussion (Misc queries) | |||
Browsing/opening a file with a macro | Excel Discussion (Misc queries) | |||
Opening a file with a Macro | Excel Discussion (Misc queries) | |||
macro error when opening any file | Excel Discussion (Misc queries) | |||
After deleting a macro, I still get the pop-up when opening file | Excel Worksheet Functions |