Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I'd like to show a userform (and/or run a macro) when I open my
Template Wizard database workbook...but NOT have it run when Excel opens it in the background to copy new records or update existing ones...any way to do this? tm |
#2
![]() |
|||
|
|||
![]()
If you put your code to show the form in Auto_open() (in a general module), then
that'll run when the workbook is opened manually. If you open the workbook via code, it won't run (unless you run it explicitly, see RunAutoMacros in VBA's help for more info). Alternatively, you could put your code behind ThisWorkbook (workbook_open). This code will run unless you stop it and you can stop it by disabling events: application.enableevents = false 'your code to open the other workbook application.enableevents = true "grasping@straws" wrote: I'd like to show a userform (and/or run a macro) when I open my Template Wizard database workbook...but NOT have it run when Excel opens it in the background to copy new records or update existing ones...any way to do this? tm -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a subbook from a workbook. | Excel Discussion (Misc queries) | |||
Workbook startup condition | Excel Discussion (Misc queries) | |||
Stubborn toolbars in Excel | Excel Discussion (Misc queries) | |||
Updating sheets within a workbook | Excel Discussion (Misc queries) | |||
copy\paste from one workbook to another | Excel Discussion (Misc queries) |