+ Reply to Thread
Results 1 to 3 of 3

Worksheet Tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2017
    Location
    Concord, NC
    MS-Off Ver
    2016
    Posts
    18

    Worksheet Tabs

    Is it possible to display 2 or more rows of worksheet tabs? I know I can hide some of them but 2 rows would be helpful.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Worksheet Tabs

    Hi,

    No it is not possible, I'm afraid.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,385

    Re: Worksheet Tabs

    .

    https://excel.tips.net/T003009_Worka...heet_Tabs.html


    Option Explicit
    
    Sub RenameTabs()
    Dim ran As Range
        Dim cel As Object
    
        Set ran = Worksheets("sheet1").Range("A2:A100")
    
        For Each cel In ran
    
            If cel.Value <> Empty Then
                
                ActiveWorkbook.Worksheets.Add After:=Worksheets(Worksheets.Count)
         
                ActiveSheet.Name = CStr(cel.Offset(0, 0).Value)
                
            Else
                Exit For
    
            End If
            
        Next cel
        CreateIndex
        
    End Sub
    
    Sub CreateIndex()
    
        'This macro checks for an Index tab in the active worksheet and creates one if one does not already exist.
        'If an Index tab already exists, the user is asked to continue.  If they continue, the original Index tab is replaced by a new Index tab.  If they do not continue, the macro stops.
        'The user is then asked if they want to create a link back to the Index tab on all other worksheets (yes or no) and the macro acts accordingly.
    
        Dim wsIndex As Worksheet
        Dim wSheet  As Worksheet
        Dim retV    As Integer
        Dim i       As Integer
    
        With Application
            .DisplayAlerts = False
            .ScreenUpdating = False
        End With
    
        Set wsIndex = Worksheets.Add(Before:=Sheets(1))
    
        With wsIndex
    
            On Error Resume Next
                .Name = "Index"
                If Err.Number = 1004 Then
                    If MsgBox(Prompt:="A sheet named ""Index"" already exists. Do you wish to continue by replacing it with a new Index?", _
                    Buttons:=vbInformation + vbYesNo) = vbNo Then
                        .Delete
                        MsgBox "No changes were made."
                        GoTo EarlyExit:
                End If
                    Sheets("Index").Delete
                    .Name = "Index"
                End If
    
            On Error GoTo 0
    
        retV = vbYes    'MsgBox("Create links back to ""Index"" sheet on other sheets?", vbYesNo, "Linking Options")
    
                For Each wSheet In ActiveWorkbook.Worksheets
                If wSheet.Name <> "Index" Then
                    i = i + 1
                    If wSheet.Visible = xlSheetVisible Then
                        .Range("B" & i).Value = "Visible"
                    ElseIf wSheet.Visible = xlSheetHidden Then
                        .Range("B" & i).Value = "Hidden"
                    Else
                        .Range("B" & i).Value = "Very Hidden"
                    End If
    
                .Hyperlinks.Add Anchor:=.Range("A" & i), Address:="", SubAddress:="'" & wSheet.Name & "'!A1", TextToDisplay:=wSheet.Name
                If retV = 6 And wSheet.Range("A1").Value <> "Index" Then
                    wSheet.Rows(1).Insert
                    wSheet.Range("A1").Hyperlinks.Add Anchor:=wSheet.Range("A1"), Address:="", SubAddress:="'" & .Name & "'!A1", TextToDisplay:=.Name
                End If
    
                End If
            Next wSheet
    
            .Rows(1).Insert
            With .Rows(1).Font
                .Bold = True
                .Underline = xlUnderlineStyleSingle
            End With
    
            .Range("A1") = "Sheet Name"
            .Range("B1") = "Status"
            .UsedRange.AutoFilter
            Rows("2:2").Select
            ActiveWindow.FreezePanes = True
            Application.Goto Reference:="R1C1"
    
            .Columns("A:B").AutoFit
        End With
    
        With ActiveWorkbook.Sheets("Index").Tab
            .Color = 255
            .TintAndShade = 0
        End With
    
    EarlyExit:
        With Application
            .DisplayAlerts = True
            .ScreenUpdating = True
        End With
    'Delete All Forms buttons
    Sheets("Sheet1").Buttons.Delete
    Sheets("Sheet1").Range("A2:Z200").Value = ""
    Sheets("Index").Activate
    Range("A1").Select
    End Sub
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Renaming Worksheet Tabs with Tabs Existing Name + Today's Date
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2016, 09:51 PM
  2. Copying Column from separate tabs in same worksheet into another worksheet with each colum
    By campbellbyte in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2014, 12:30 AM
  3. Select worksheet tabs according to value of cell in another worksheet
    By JB1970 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2013, 06:31 AM
  4. [SOLVED] How to copy worksheet to new worksheet each week and rename the tabs for the monday date.
    By tmeakin! in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2013, 01:17 PM
  5. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  6. Rename worksheet tabs and sheets to match tabs via button
    By timgavin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-31-2011, 06:12 PM
  7. [SOLVED] Macro to name worksheet tabs using a cell within the worksheet?
    By Jennifer in forum Excel General
    Replies: 3
    Last Post: 07-18-2006, 06:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1