Excel Tab

SimpleSimon62

New Member
Joined
Jul 2, 2014
Messages
6
I'm sure its possible to populate the excel tab, from data within the same worksheet, but how do you do it?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the Board!

Not sure what you mean. Perhaps if you explain an actual example, it will make more sense.
 
Upvote 0
I have an excel file with 40 worksheets within. These represent 1 employee with 1 unique input worksheet. So i wish to label the unique worksheet (tab) to John Doe - Input, so that Empl1-Payroll Calc, will be solely dependent on John Doe worksheet name. - hope this makes sense!

-- removed inline image ---
 
Upvote 0
Perhaps the INDIRECT function is what you are looking, which will allow you to build a sheet reference dynamically and then pull from it.
See:http://www.contextures.com/xlFunctions05.html
(especially the part that says "Create a Reference to a Different Sheet").
 
Upvote 0
This event code, pasted into the codesheet of the appropriate worksheet will change the tab name to whatever the value in cell A1 is changed to.

Could you amend this to suit your needs?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Not Intersect(Target, Range("A1")) Is Nothing Then
        If Target.Cells.Count = 1 Then
            If Len(Target.Formula) > 0 Then
                ActiveSheet.Name = Range("A1").Formula
            End If
        End If
    End If


End Sub

Pete
 
Upvote 0
You do not have permission to perform this action. Please refresh the page and login before trying again.
Are you being automatically logged out?
If you click on the "Remember Me" check box when logging in, you will not be logged out after a specific period of time.
 
Upvote 0
Adding Event Code into a worksheet or the workbook:
1. Copy the code to the Clipboard.
2. Open your workbook
3. [Alt]+[F11] to open the Visual Basic Editor
4. Within “Microsoft Excel Objects”, double click on the worksheet (or “This Workbook”) where you want the code to run.
5. Paste the code with [Control]+v
6. [Alt]+q to exit the Editor, and return to Excel

Cheers

Pete
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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