Tab Names

  • Thread starter Thread starter higherlimits
  • Start date Start date
H

higherlimits

Is it possible to set the tab (worksheet) names equal to a cell?
 
Only with VBA code.


Sub AAA()
Worksheets(1).Name = Worksheets(1).Range("A1").Value
End Sub



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

"higherlimits"
in message
news:[email protected]...
 
Yes, but:

1. the cell must contain a legal tab name
2. tab names must be unique

Sub Macro2()
Sheets("Sheet1").Select
Sheets("Sheet1").Name = Cells(1, 1).Value
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Array 3
Want Cell A1 equal to File name + Worksheet name 12
Worksheet tab name 12
Tab color change 2
Cell = Tab Name 2
Automatic tab titles 13
How to refer to tab names? 1
cell equal worksheet title 3

Back
Top