View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Renaming a Worksheet with a macro... but...

Try something like


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


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



"Pitbull at Work" wrote in
message ...
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