Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sheet name from cell data

Status
Not open for further replies.

cmunnelly

Technical User
Jul 4, 2003
16
GB
Is it possible name a sheet directly from the data that is in a cell. I have a macro that produces a new sheet and an input box. The user inputs the new project name in the box and it is then transferred to cell A1. I want the sheetname to reflect the data the user has input in the box or in cell A1. Is this possible?

thanks in advance
 
Yep just do something like this, replace "InfoSheet" with the name of the sheet which has the value in A1:
Code:
Sheets.Add
ActiveSheet.Name = Worksheets("InfoSheet").Range("A1").Value

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top