Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
I have a macro that copies a sheet out of "ThisWorkbook", pastes it into a new workbook, and then e-mails the new workbook to a recipient list. This works fine. My problem is, the "Sheet" object contains code - OnSelectionChange, AfterDoubleClick, AfterRightClick Events. When the sheet is copied, this code is also copied into the new book, so when the recipient opens and selects a cell, the SelectionChanged event fires, causing an error. Thought I could just throw in an error handler and avoid this, but it throws a "Compile Error" and opens the debugger every time, which is confusing the hell out of the recipients. Is there a way to copy the sheet without the code, or programatically erase the code? Thanks for any help - Sean |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
what is the vb code to copy rows from one sheet to another? | Excel Discussion (Misc queries) | |||
How do i copy a active sheet to a new sheet with code and everything | Excel Programming | |||
Copy sheet without Code | Excel Programming | |||
Copy Sheet w/o VBA code | Excel Programming |