Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel-how to link source workbook to copy of destination workbook | Excel Worksheet Functions | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Multiple workbook user's with Master workbook - all password protected | Excel Discussion (Misc queries) | |||
Excel Gurus = want a macro in 1 workbook to get info from another workbook = Read please | Excel Programming | |||
What commands do you use to name a workbook, save a workbook,open a workbook | Excel Programming |