Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Dynamically adding a macro to a new worksheet

How can I programmically add a macro to a new worksheet that was just
created?
I want to add a macro called "Private Sub Worksheet_Activate()" with
control lines for making toolbar buttons visible or not visible.

Any help or direction will be greatly appreciated.

Best regards,
Fred


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Dynamically adding a macro to a new worksheet

Hi Fred,

See Chip Pearson's page on VBE programming:

http://www.cpearson.com/excel/vbe.htm


---
Regards,
Norman



"Fred Russell" wrote in message
...
How can I programmically add a macro to a new worksheet that was just
created?
I want to add a macro called "Private Sub Worksheet_Activate()" with
control lines for making toolbar buttons visible or not visible.

Any help or direction will be greatly appreciated.

Best regards,
Fred



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamically adding a macro to a new worksheet

See Chip Pearson's page on programming the VBE for an example:

http://www.cpearson.com/excel/vbe.htm

--
Regards,
Tom Ogilvy

"Fred Russell" wrote in message
...
How can I programmically add a macro to a new worksheet that was just
created?
I want to add a macro called "Private Sub Worksheet_Activate()" with
control lines for making toolbar buttons visible or not visible.

Any help or direction will be greatly appreciated.

Best regards,
Fred




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Dynamically adding a macro to a new worksheet

Thanks for your help! Spot on.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Dynamically adding a macro to a new worksheet

Thanks for the help! Spot on.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically Adding Textbox To Frame sarndt Excel Worksheet Functions 0 March 15th 10 06:19 PM
Dynamically adding code Martin Walke Excel Programming 2 October 21st 04 12:18 PM
Adding Pivot Tables Dynamically DavidW Excel Programming 0 May 4th 04 09:16 AM
Dynamically adding data to a Combobox? samanathon Excel Programming 4 April 5th 04 11:26 AM
Adding button dynamically lagodch Excel Programming 1 October 7th 03 10:14 PM


All times are GMT +1. The time now is 09:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"