Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Denis
 
Posts: n/a
Default Naming Worksheet

I am wanting to automatically name a range of worksheets based on the values
contained in a range of cells located in another worksheet in the same
workbook.

Can this be done and how would I go about it
--
Denis
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Denis,

Try something like the following. It will change the name of the
first sheet in the workbook to the value in A1 of Sheet3.

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target
As Range)
If Sh.Name = "Sheet3" And Target.Address = "$A$1" Then
Worksheets(1).Name =
Worksheets("Sheet3").Range("A1").Text
End If
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Denis" wrote in message
...
I am wanting to automatically name a range of worksheets based
on the values
contained in a range of cells located in another worksheet in
the same
workbook.

Can this be done and how would I go about it
--
Denis



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Denis

Sub NameWS()
'name sheets from data list in A1:A10 on first sheet
For i = 2 To 10
Sheets(i).Name = Sheets(1).Cells(i, 1).Value
Next
End Sub


Gord Dibben Excel MVP

On Tue, 13 Sep 2005 06:35:06 -0700, "Denis"
wrote:

I am wanting to automatically name a range of worksheets based on the values
contained in a range of cells located in another worksheet in the same
workbook.

Can this be done and how would I go about it


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
macro to copy and edit then delete a worksheet lschuh Excel Discussion (Misc queries) 13 July 27th 05 09:02 PM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 09:03 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM


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