Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default disable macros?

Hi, I am programatically copying worksheets from one workbook to another.
The macros come with the worksheet, which I don't want to happen. I can't
guaranteed the users will disable macros when opening the new workbook. How
can I easily:

1. Copy only the worksheet, not the underlying code, or
2. insert code that disables macros on open, or
3. programmatically save the file so macros are disabled next time it's
opened, or
4. manually save the file so that macros are disabled next time it's opened?
5. Do you have a simpler idea how to not copy, delete, or not execute code
for a whole bunch of worksheets?

Thank you,
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default disable macros?

See if this fits the bill

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

Jim Thomlinson


"me" wrote:

Hi, I am programatically copying worksheets from one workbook to another.
The macros come with the worksheet, which I don't want to happen. I can't
guaranteed the users will disable macros when opening the new workbook. How
can I easily:

1. Copy only the worksheet, not the underlying code, or
2. insert code that disables macros on open, or
3. programmatically save the file so macros are disabled next time it's
opened, or
4. manually save the file so that macros are disabled next time it's opened?
5. Do you have a simpler idea how to not copy, delete, or not execute code
for a whole bunch of worksheets?

Thank you,
Mike



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
how do i disable macros? whatzzup Excel Discussion (Misc queries) 1 March 14th 06 01:51 PM
Disable macros Otto Moehrbach[_6_] Excel Programming 0 November 18th 04 03:49 PM
Disable Macros through VBA Mirom Excel Programming 3 February 18th 04 02:03 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
en-/disable macros pop-up James[_10_] Excel Programming 1 July 22nd 03 05:55 PM


All times are GMT +1. The time now is 09:19 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"