Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving a workbook without code and controls

Status
Not open for further replies.

DenisB

Technical User
Sep 11, 2001
7
NO
Is it possible to saveas a workbook or a worsheet, discarding the macros and the controls.
The application generates invoices, and I would like only those to be saved, without command buttons and code.
 
Denis,

How about using the following method...

1) Create a template file by saving an existing invoice to a separate filename, and of course remove all the buttons and code.

2) In your application file, modify the code to:
a) Open the template file,
b) Copy the invoice data to the template file
c) Save the template file with an incremental filename - possibly including the invoice number.

Hope this helps.

Regards, Dale Watson
 
Thanks Dale, an easy and elegant solution.

Best regards,
Denis.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top