Is it possible to auto name a tab within a workbook based on a cell reference?

cwashburn

New Member
Joined
May 22, 2014
Messages
2
I have several budgeting workbooks in Excel 2003 that are used by my companies field staff to input data. The inputs they choose within the header creates a unique budget number and each tab within the workbook represents a single unique budget. I currently have the field staff "copying" and "pasting" the unique budget number from the cell where it resides to the Tab name in order to clearly identify that tab within the workbook. Can this process be automated? I could create a macro button to perform the task but thought it might simply be able to be automated and I can't seem to figure out how to do it...

Thanks in advance for any guidance even if it is to tell me it can't be done!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
This is simple on deactivating any worksheet.

Paste this into the Thisworkbook

If you have some sort of Template you may want to add something like IF Sh.Name <> "Template" Then

Code:
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Sh.Name = Sh.Range("A1").Value ' Change the Cell Reference
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top