Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Copy sheet without macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erin - 23 Jan 2006 15:30 GMT
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!
Tom Ogilvy - 23 Jan 2006 16:01 GMT
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

Signature

Regards,
Tom Ogilvy

> 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
[quoted text clipped - 3 lines]
> attached to the sheet?
> THANKS!
Ron de Bruin - 23 Jan 2006 16:03 GMT
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

Signature

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

>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
[quoted text clipped - 3 lines]
> attached to the sheet?
> THANKS!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.