LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Naming Workbooks and Sheets

I need to insert a new workbook that is named from a cell
value plus a contstant.

I have done this with inserting worksheets like this:

Sheets.Add.Name = Range("B2").Value

What I want is something like

Workbooks.Add.Name = Range("B2") & "constant".Value

Is there a different syntax for workbooks and worksheets?

If so I would like to see both.

I have a tool that I want to keep clean so when the user
is finished entering data I am taking that information
and storing it in a new workbook named from a value in
the tool and then inserting 2 worksheets named for the
value + contstant. The constant is obviously unique for
each page.

Thanks

Mike
 
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
Naming sheets after a range kefee85 Excel Discussion (Misc queries) 3 October 13th 09 09:51 PM
Naming sheets from a cell value Tony4X4 Excel Discussion (Misc queries) 12 September 7th 09 01:55 PM
Date calculation across workbooks / Workbook naming question. Phil Excel Discussion (Misc queries) 2 February 1st 08 12:55 PM
VBA Help naming sheets jlclyde Excel Discussion (Misc queries) 8 November 20th 07 09:59 PM
Naming multiple sheets Amanda Excel Discussion (Misc queries) 2 April 24th 07 04:46 PM


All times are GMT +1. The time now is 03:42 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"