ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   save as event (https://www.excelbanter.com/excel-programming/278813-save-event.html)

scrabtree23

save as event
 
Here is a code

If ThisWorkbook < "Time Form" Then
ThisWorkbook.Name = "Time Form"
End If

I get an error that I can not do this on a read only
something.

Chip Pearson

save as event
 
The Name property is read-only, and the only way to change it is to save the
workbook under a new name using SaveAs. E.g.,

ThisWorkbook.SaveAs Filename:="TimeForm.xls"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"scrabtree23" wrote in message
...
Here is a code

If ThisWorkbook < "Time Form" Then
ThisWorkbook.Name = "Time Form"
End If

I get an error that I can not do this on a read only
something.





All times are GMT +1. The time now is 12:01 AM.

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