ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Textbox & Save file problem (https://www.excelbanter.com/excel-programming/305987-textbox-save-file-problem.html)

Stuart[_5_]

Textbox & Save file problem
 
I have a textbox from the Drawing toolbar on a sheet.
The textbox is "enabled" and user enters their data.
They then click Save or SaveAs.

Code in the Workbook_BeforeSave Event then operates.

This is the 'Save' sequence:

'save the new fax, and leave it open
Application.EnableEvents = False
Activesheet.Protect Password:="abc"
ActiveWorkbook.Protect Password:="abc"
ActiveWorkbook.SaveAs fName
Application.EnableEvents = True

Problem. When I open the saved copy, the textbox
contents are missing. How do I "burn" the textbox's
contents into the sheet before the Save, please?

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.727 / Virus Database: 482 - Release Date: 26/07/2004




All times are GMT +1. The time now is 05:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com