Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Anyone who can tell me how to run some code when I make a new workbook from a template? I want it to run only when I create a new document, not when opening it later. FTL |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have the code as workbook open code, and then at the end delete it.
See http://www.cpearson.com/excel/vbe.htm to update code on the fly. Might be a good idea to use OnTime to trigger a delete macro at the end of the workbook open routine. Again, see http://www.cpearson.com/excel/ontime.htm for details. -- HTH RP "FTL" wrote in message ... Hi Anyone who can tell me how to run some code when I make a new workbook from a template? I want it to run only when I create a new document, not when opening it later. FTL |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File running slow! | Excel Discussion (Misc queries) | |||
Template for Excel to keep running record? | Excel Discussion (Misc queries) | |||
Running a .bat file via AppActivate | Excel Programming | |||
Running a batch file from VB | Excel Programming | |||
Running a macro on a template | Excel Programming |