+ Reply to Thread
Results 1 to 2 of 2

How can I insert the tab name into a cell in a different shee...

  1. #1
    prumble
    Guest

    How can I insert the tab name into a cell in a different shee...

    I want to create a totals worksheet and insert the tab names in column A so I
    can then display the totals for each worksheet.

    I'm running XP 2002.

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    I would try this

    Sub List_Worksheet()
    Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    Worksheets.Add
    ActiveSheet.Name = "Total_Worksheet"
    Set ArrFeuil = Sheets("Total_Worksheet")
    ArrFeuil.Cells(1, 1).Value = "Total Worksheets Value"
    For i = 2 To ActiveWorkbook.Sheets.Count
    ArrFeuil.Cells(i, 1).Value = Sheets(i).Name
    Next i
    Application.DisplayAlerts = True
    Alerte = True
    Application.ScreenUpdating = True
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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