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

How does one rename a workbook that was just created?

Thanks,
Elieze

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Excel VBA: Renaming a workbook

You can't. You have to save it with the desired name.

--

Vasant

"Lazer " wrote in message
...
How does one rename a workbook that was just created?

Thanks,
Eliezer


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel VBA: Renaming a workbook

You could do a SaveAs with the new name, then Kill the old name.

--

HTH

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

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
You can't. You have to save it with the desired name.

--

Vasant

"Lazer " wrote in message
...
How does one rename a workbook that was just created?

Thanks,
Eliezer


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





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Excel VBA: Renaming a workbook

True, Bob. And there wouldn't even be an old name to kill if the workbook
was just created. I just thought the OP was asking for some way of renaming
the workbook in memory without saving it, similar to renaming a worksheet.

--

Vasant


"Bob Phillips" wrote in message
...
You could do a SaveAs with the new name, then Kill the old name.

--

HTH

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

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
You can't. You have to save it with the desired name.

--

Vasant

"Lazer " wrote in message
...
How does one rename a workbook that was just created?

Thanks,
Eliezer


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







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA: Renaming a workbook

Yes, Vasant, that is exactly what I was asking: How to change
Workbook from "Book1" to "My Own Name for My Workbook".

Thanks,
Elieze

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Excel VBA: Renaming a workbook

As I said, there is no efficient way of doing this. You would need to save
it under the new name at least once for the new name to "take".

--

Vasant


"Lazer " wrote in message
...
Yes, Vasant, that is exactly what I was asking: How to change a
Workbook from "Book1" to "My Own Name for My Workbook".

Thanks,
Eliezer


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



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel VBA: Renaming a workbook

Hi Vasant,

I agree, just trying to be creative in providing a solution.

--

HTH

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

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
True, Bob. And there wouldn't even be an old name to kill if the workbook
was just created. I just thought the OP was asking for some way of

renaming
the workbook in memory without saving it, similar to renaming a worksheet.

--

Vasant


"Bob Phillips" wrote in message
...
You could do a SaveAs with the new name, then Kill the old name.

--

HTH

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

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
You can't. You have to save it with the desired name.

--

Vasant

"Lazer " wrote in message
...
How does one rename a workbook that was just created?

Thanks,
Eliezer


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









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
Renaming Styles in Excel qicea76 Excel Discussion (Misc queries) 2 January 13th 09 10:05 PM
Renaming Columns A, B, C, D, E, etc. in Excel? Lee H. Setting up and Configuration of Excel 2 September 27th 08 06:59 AM
Renaming Files w/Excel Confused VB Person Excel Discussion (Misc queries) 4 March 21st 08 09:26 AM
Excel, renaming columns Treasuris Excel Worksheet Functions 1 September 27th 05 02:03 AM
Renaming Sheets in a workbook Cameron MacRae Excel Programming 2 December 18th 03 11:19 PM


All times are GMT +1. The time now is 09:56 PM.

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"