Renaming a Worksheet with a macro... but...

P

Pitbull at Work

Hello all, I am trying to rename a sheet in a macro but I
want the sheet name to be taken in a specific cell.

For example, I have "Hello: in cell a1 and want my macro
to create a new worksheet and name it "hello" (hello might
change to something else)

How can I do that?

Thanks

Pitbull
 
C

Chip Pearson

Try something like


Worksheets.Add.Name = Worksheets("Sheet1").Range("A1").Text


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