Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save data without code...
I have a workbook with a lot of code in modules and userforms. This code is
protected with password but I would like the user can´t save it with the data. Is there an option to save only the data in the sheet without the code. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save data without code...
You have to create a new workbook and copy the worksheets.
First = True for each sht in thisworkbook.sheets if First = True then 'copy sheet to create new workbook sht.Copy set newbk = activeworkbook First = False else sht.copy after:=newbk.sheets(newbk.sheets.count) end if next sht newbk.saveas filename = ABC.XLS newbk.close next "Juan GarcÃ*a" wrote: I have a workbook with a lot of code in modules and userforms. This code is protected with password but I would like the user can´t save it with the data. Is there an option to save only the data in the sheet without the code. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can i save activeworkbook to binary data before save ? | Excel Programming | |||
Modifying code to save data | Excel Programming | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming | |||
Placing a code before Save & Save As | Excel Programming | |||
VBA code gets lost from workbook if I paste in new data and save??? | Excel Programming |