Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Copy sheet without macro

I have VBA code which will take a copy of the activesheet, save it and create
an Outlook Drafts folder item with the saved workbook attached. My problem
is the original workbook is interactive and has vba code on the
"before_doubleclick" event of the sheet. I do not want the emailed copy to
have this macro code. How can I copy the sheet without copying the macros
attached to the sheet?
THANKS!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy sheet without macro

You can copy the sheet and then clear the macro. See Chip Pearson's site
for sample code

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

--
Regards,
Tom Ogilvy


"Erin" wrote in message
...
I have VBA code which will take a copy of the activesheet, save it and

create
an Outlook Drafts folder item with the saved workbook attached. My

problem
is the original workbook is interactive and has vba code on the
"before_doubleclick" event of the sheet. I do not want the emailed copy

to
have this macro code. How can I copy the sheet without copying the macros
attached to the sheet?
THANKS!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy sheet without macro

Hi v

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

My Mail add in have a option to delete the VBA when you send the activesheet.
http://www.rondebruin.nl/mail/add-in.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Erin" wrote in message ...
I have VBA code which will take a copy of the activesheet, save it and create
an Outlook Drafts folder item with the saved workbook attached. My problem
is the original workbook is interactive and has vba code on the
"before_doubleclick" event of the sheet. I do not want the emailed copy to
have this macro code. How can I copy the sheet without copying the macros
attached to the sheet?
THANKS!



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
macro - copy/add to another sheet puiuluipui Excel Discussion (Misc queries) 1 March 9th 10 08:34 PM
Macro to copy a sheet and name it OdAwG Excel Discussion (Misc queries) 7 April 1st 07 10:22 PM
Macro to copy sheet(s) FGOMEZ Excel Programming 6 July 16th 05 01:03 AM
Macro to copy sheet Chance224 Excel Programming 3 March 9th 05 05:20 PM
How to create a Macro to Copy Information in one sheet to another sheet. poppy Excel Programming 3 July 28th 04 07:26 AM


All times are GMT +1. The time now is 12:16 AM.

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

About Us

"It's about Microsoft Excel"