Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Rename a new workbook

Is it possible through VBA to create a new Workbook and also assign a given
name to the Workbook without having the Workbook saved?

Best Regards

Jan Eric


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Rename a new workbook

Hi Jan Eric,

A workbook's name is created when the workbook is saved, so this is not
possible.

The default new workbook name (usually "Book" and a numeric) can be altered
by changing (and saving) the (xlt) template file.

What is it that you are attempting to do and why do you find it necessary,
or desirable, to assign a name without saving the workbook?

---
Regards,
Norman



"Jan Eric Nilsson" wrote in message
...
Is it possible through VBA to create a new Workbook and also assign a
given name to the Workbook without having the Workbook saved?

Best Regards

Jan Eric



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Rename a new workbook

An example

ActiveWorkbook.SaveCopyAs "c:\backup\currb4roll.XLS"

Guessing you want to save a copy but keep on going with the existing old
file.

--
Greetings from New Zealand
Bill K

"Jan Eric Nilsson" wrote in message
...
Is it possible through VBA to create a new Workbook and also assign a
given name to the Workbook without having the Workbook saved?

Best Regards

Jan Eric



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
How to open a new workbook and rename the workbook? pokdbz Excel Discussion (Misc queries) 3 December 26th 07 03:37 PM
How can I rename a Workbook? Mac Lingo[_2_] Excel Programming 2 April 23rd 05 09:24 PM
Rename workbook upon closing Brian Excel Programming 1 October 18th 04 07:02 PM
Rename a workbook! aiyer[_22_] Excel Programming 1 May 12th 04 05:12 PM
Workbook, worksheet rename PW[_2_] Excel Programming 0 September 4th 03 12:34 PM


All times are GMT +1. The time now is 11:08 PM.

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"