#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Track tabs

I'm tracking applcations in a report I send to various managers. Each
application has its own tab (ex. ABC, CDE, EFG, HIJ), but not all tabs will
be present for each manager.

Manager A's workbook might have ABC, CDE, and Manager B's might only have HIJ.

I'd like to create an index tab that will lists all possible tabs and
indicate with a YES or NO whether or not the manager has that tab listed. Is
there a way to do this?

For example, Manager A's index would look like this:

ABC YES
CDE YES
EFG NO
HIJ NO

Manager B's index tab:

ABC NO
CDE NO
EFG NO
HIJ Yes

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default Track tabs

If I understand what you want, the following should do the trick:

Option Explicit
Sub index()

Dim indexselection As Range
Dim l, h, i As Long
Dim firstsheet As Worksheet

With Range("A1")
l = Range(.Offset(0, 0), .End(xlDown)).Rows.Count
End With

Set firstsheet = ActiveSheet
Set indexselection = Range("A1")

For h = 1 To l

For i = 1 To ActiveWorkbook.Sheets.Count
On Error Resume Next
If ActiveSheet.Name Like indexselection.Value Then
indexselection.Offset(0, 1).Value = "Yes"
Exit For
Else: indexselection.Offset(0, 1).Value = "No"
ActiveSheet.Next.Select
End If
Next i

firstsheet.Select
Set indexselection = indexselection.Offset(1, 0)

Next h


End Sub


--
-SA


"Nico" wrote:

I'm tracking applcations in a report I send to various managers. Each
application has its own tab (ex. ABC, CDE, EFG, HIJ), but not all tabs will
be present for each manager.

Manager A's workbook might have ABC, CDE, and Manager B's might only have HIJ.

I'd like to create an index tab that will lists all possible tabs and
indicate with a YES or NO whether or not the manager has that tab listed. Is
there a way to do this?

For example, Manager A's index would look like this:

ABC YES
CDE YES
EFG NO
HIJ NO

Manager B's index tab:

ABC NO
CDE NO
EFG NO
HIJ Yes

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I alphabetize the tabs on a spreadsheet with 25 tabs? Anita Excel Worksheet Functions 0 May 27th 10 10:01 PM
How do I alphabetize the tabs on a spreadsheet with 25 tabs? Mike H Excel Worksheet Functions 0 May 27th 10 09:50 PM
tabs are missing even though 'tools-options-view-sheet tabs' ok? rgranell Excel Worksheet Functions 3 August 16th 08 04:25 PM
hide tabs from view then lock tabs? slowboat Excel Discussion (Misc queries) 1 December 19th 07 07:06 AM
"Track Changes" - Prevent turn off track changes to meet SOX regs Tammy Miller Excel Discussion (Misc queries) 2 July 31st 07 11:42 AM


All times are GMT +1. The time now is 02:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"