Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Write code to a new worksheet?

I have a macro that creates a new worksheet.

One of the functions on this new worksheet is to detect changes in
itself and then respond accordingly using the Worksheet_Change
methodology.

Is there a way to write code via another macro to the new worksheet so
I can build the Worksheet_Change routine in the newly created
worksheet?

Thanks.

John

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Write code to a new worksheet?

You can create a sheet template(with the code) and insert that sheet with code or
See Chip Pearson's site
http://www.cpearson.com/excel/vbe.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"robotman" wrote in message oups.com...
I have a macro that creates a new worksheet.

One of the functions on this new worksheet is to detect changes in
itself and then respond accordingly using the Worksheet_Change
methodology.

Is there a way to write code via another macro to the new worksheet so
I can build the Worksheet_Change routine in the newly created
worksheet?

Thanks.

John

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
could someone write me a VB code? thanks Morgan New Users to Excel 6 March 10th 10 01:20 PM
Write code to Write Code Kstalker[_43_] Excel Programming 6 November 25th 05 12:30 AM
Code to write out all lines of code davidm Excel Programming 3 August 5th 05 04:26 AM
How can i write TSR code A-Design Excel Programming 5 September 29th 04 05:26 PM
Using VBA to Write VBA code SB Excel Programming 10 January 23rd 04 02:01 PM


All times are GMT +1. The time now is 10:56 AM.

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"