worksheet name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to create a worksheet name based upon a cell reference from
another worksheet in the same workbook. For example, I would like the
worksheet's name to be a referential reference to cell A1 from worksheet2.
 
Hi
try
sub foo()
activesheet.name=worksheets("sheet2").range("A1").value
end sub

--
Regards
Frank Kabel
Frankfurt, Germany

scottcts said:
I'm trying to create a worksheet name based upon a cell reference from
another worksheet in the same workbook. For example, I would like the
worksheet's name to be a referential reference to cell A1 from
worksheet2.
 
Thanks. It works perfectly.

Frank Kabel said:
Hi
try
sub foo()
activesheet.name=worksheets("sheet2").range("A1").value
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


worksheet2.
 
Scott

Sub SheetName22()
ActiveSheet.Name = Sheets("Sheet2").Range("A1")
End Sub

Gord Dibben Excel MVP
 

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

Back
Top