Naming Tabs with a reference using a Macro

  • Thread starter Thread starter Scott Isaacs
  • Start date Start date
S

Scott Isaacs

How do I name a Workbook Sheet tab with a reference to data within that sheet
in a macro?
 
if suppose A1 has the name in sheet.

Sub sheetnamemacro()

Range("A1").select
activesheet.name = activecell.value

End Sub
 
Yep...that worked, thank you Heera

Heera Chavan said:
if suppose A1 has the name in sheet.

Sub sheetnamemacro()

Range("A1").select
activesheet.name = activecell.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

Back
Top