one way would be to create a new workbook and then copy and paste the cells
dim sh as worksheet, bk as workbook
set sh = activesheet
set bk = workbooks.Add
sh.cells.copy destination:=bk.Worksheets(1).cells
then you won't copy any code associated with the commandbuttons either.
--
Regards,
Tom Ogilvy
"mtm4300 via OfficeKB.com" wrote:
I have a userform that allows a user to Save individual worksheets from a
workbook. To make this happen, I had to write a macro to copy the individual
worksheet to new workbook, and then have the Save As dialog box appear. When
I copy the sheet, the Command Buttons are also copied. Is there a way to
eliminate the buttons from being copied?
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200604/1