Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save As - Before Save Event, VB, another name Danny Excel Worksheet Functions 0 March 15th 07 05:57 PM
Save Event - Determine if called by code or user David Sedberry Excel Programming 0 October 2nd 03 04:56 PM
Macro vs Manual save event David Sedberry Excel Programming 2 September 25th 03 06:05 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM
After save event Bart[_3_] Excel Programming 2 July 22nd 03 12:07 PM


All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"