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

I am copying a worksheet into a new workbook. Is there a
way to name this new workbook something other
than "Book1" without saving it?

Thanks,
-TT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Name of a new workbook

Tommy,

I don't think so, Name is a read-only property.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tommy T" wrote in message
...
I am copying a worksheet into a new workbook. Is there a
way to name this new workbook something other
than "Book1" without saving it?

Thanks,
-TT



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

Upon completion of the copy, the active workbook is normally the target
workbook. Whatever it was called, you can rename it anything you want
without knowing it current name:

strTempName = ActiveWorkBook.Name

WorkBook(strTempName).Name = "whatever you want"


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Name of a new workbook

For the benefit of the OP,
This information is incorrect.

--
Regards,
Tom Ogilvy

MWE wrote in message
...
Upon completion of the copy, the active workbook is normally the target
workbook. Whatever it was called, you can rename it anything you want
without knowing it current name:

strTempName = ActiveWorkBook.Name

WorkBook(strTempName).Name = "whatever you want"


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Name of a new workbook

My apologies to the forum. I thought I had actually done what I
previously mentioned several times. But what I actually did is what
another suggested, i.e., save the active workbook with the particular
name right after creating it.


---
Message posted from http://www.ExcelForum.com/



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Name of a new workbook

No, the name of the workbook is its saved file name (the exception being
Book#). You can not change that default name except by saving the workbook.
(You could always kill it after you are through with it).

--
Regards,
Tom Ogilvy

Tommy T wrote in message
...
I am copying a worksheet into a new workbook. Is there a
way to name this new workbook something other
than "Book1" without saving it?

Thanks,
-TT



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
Excel-how to link source workbook to copy of destination workbook D Lynn Excel Worksheet Functions 1 May 29th 08 05:36 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
Multiple workbook user's with Master workbook - all password protected Yvon Excel Discussion (Misc queries) 2 March 30th 05 01:34 PM
Excel Gurus = want a macro in 1 workbook to get info from another workbook = Read please harry Excel Programming 5 December 20th 03 03:26 AM
What commands do you use to name a workbook, save a workbook,open a workbook Steven R. Berke Excel Programming 1 July 24th 03 11:37 PM


All times are GMT +1. The time now is 10:40 AM.

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

About Us

"It's about Microsoft Excel"