LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Can I search for a worksheet by Tab Name?

Say each sheet has the employee name. Make a summary sheet with the names in
column A. Might look like:

Jones
Ravenswood
Smith

If you like, put them in alphabetic order.

Then insert the following event macro in the worksheet code area:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
Cancel = True
On Error Resume Next
Sheets(Target.Value).Activate
If Err < 0 Then
MsgBox ("Sheet not found")
Err = 0
End If
End Sub

Now if you double-click on a person's name in column A, you will
automatically be taken to the correct worksheet. If there is a problem, you
will get a message.
--
Gary''s Student - gsnu200812


"Jerry L" wrote:

I am using Excel to track data on my employees. It would be helpful if I
could search of the employee's last name, in stead of scanning the tabs.

Thanks,
Jerry

 
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
SEARCH WORKSHEET USING A NOT CRITERIA lghovden06 Excel Discussion (Misc queries) 2 August 5th 08 02:04 AM
Search worksheet names? J@Y Excel Discussion (Misc queries) 4 February 1st 07 06:59 PM
Search one worksheet for values in another worksheet? ClayShooters Excel Discussion (Misc queries) 1 July 4th 06 03:01 PM
Can vlookup be used to search in more than one worksheet? Rufus T Firefly Excel Worksheet Functions 3 June 17th 06 03:22 AM
Search using multiple worksheet gloss Excel Worksheet Functions 5 May 10th 06 02:34 AM


All times are GMT +1. The time now is 10:05 PM.

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

About Us

"It's about Microsoft Excel"