Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to insert VBA code programmatically? I have a template
containing a macro that, among other things, creates a sheet with a pivot table. There is also a macro in a module in this file that I want to run whenever this pivot table is updated. Since the sheet with the pivot table doesn't exist until created by the macro, I don't know of a way (other than manually after the macro runs) to drop in the event macro to trigger the desired module code. Is there a programmatic way to do this? Will |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Check out this link...
http://www.cpearson.com/excel/vbe.htm -- HTH... Jim Thomlinson "roadkill" wrote: Is there a way to insert VBA code programmatically? I have a template containing a macro that, among other things, creates a sheet with a pivot table. There is also a macro in a module in this file that I want to run whenever this pivot table is updated. Since the sheet with the pivot table doesn't exist until created by the macro, I don't know of a way (other than manually after the macro runs) to drop in the event macro to trigger the desired module code. Is there a programmatic way to do this? Will |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This looks like it should take care of my my problem.
Thank you "Jim Thomlinson" wrote: Check out this link... http://www.cpearson.com/excel/vbe.htm -- HTH... Jim Thomlinson "roadkill" wrote: Is there a way to insert VBA code programmatically? I have a template containing a macro that, among other things, creates a sheet with a pivot table. There is also a macro in a module in this file that I want to run whenever this pivot table is updated. Since the sheet with the pivot table doesn't exist until created by the macro, I don't know of a way (other than manually after the macro runs) to drop in the event macro to trigger the desired module code. Is there a programmatic way to do this? Will |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to move sheet after inserting it programmatically | Excel Programming | |||
Programmatically inserting hyperlinks | Excel Programming | |||
How to edit VB code programmatically | Excel Programming | |||
Replace Code Programmatically | Excel Programming | |||
Programmatically inserting a row with Excel 2003 | Excel Programming |