Results 1 to 9 of 9

Adding an Index or TOC sheet in Excel 2010

Threaded View

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    54

    Adding an Index or TOC sheet in Excel 2010

    I have a workbook that has about 40 worksheets and it is really difficult to move around quickly and easily. The added complication is that whilst I have created the workbook, and will fix anything that goes awry with it, on a Windows laptop, the end users all use Macs, so I need to make sure that the functionality works in a Mac.

    I have tried the right click on the bottom right-hand scroll button, and this works on a Windows laptop, but the users are having trouble with this on the Mac - I assume it is the right click that is the issue.

    I have tried several bits of code and the one that works the best is as follows:-
    Private Sub Worksheet_Activate()
    Dim wSheet As Worksheet
    Dim l As Long
    
    l = 1
    
        With Me
            .Columns(1).ClearContents
            .Cells(1, 1) = "INDEX"
            .Cells(1, 1).Name = "Index"
        End With
        
    
        For Each wSheet In Worksheets
            If wSheet.Name <> Me.Name Then
                l = l + 1
                    With wSheet
                        .Range("H1").Name = "Start_" & wSheet.Index
                        .Hyperlinks.Add Anchor:=.Range("A1"), Address:="", _
                        SubAddress:="Index", TextToDisplay:="Back to Index"
                    End With
    
                    Me.Hyperlinks.Add Anchor:=Me.Cells(l, 1), Address:="", _
                    SubAddress:="Start_" & wSheet.Index, TextToDisplay:=wSheet.Name
            End If
        Next wSheet
    
    End Sub
    However the users get an error message, which I have attached.

    Does anyone know why this might be?
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel 2010: Index/Match Problems
    By Bob Lankin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 07:27 PM
  2. adding scatterplot in Excel 2010
    By bored in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 11:36 PM
  3. [SOLVED] Excel 2010 - INDEX formula issues
    By sldonovan77 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-13-2013, 12:49 AM
  4. Changing code name of excel 2010 sheet using word 2010 vba
    By samkumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2013, 08:59 AM
  5. [SOLVED] Adding a max and min to an IF formula in Excel 2010
    By yamaha333 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2013, 09:50 AM
  6. Excel 2010 Index Help
    By Jenjen123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 12:10 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