#1   Report Post  
Chance224
 
Posts: n/a
Default Search for a Sheet

I have a workbook to track employee's time. There is a sheet for every
employee and then a recap sheet that totals the hours & etc. How can I make
a macro to search for a certin name and then activate that sheet. We have
alot employee's and its a pain to search for the person and enter in the data.

Thanks,
Chance
  #2   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Chance,

You may find a whole bunch of Excel functionality available to you if you
put all the employee data in a single sheet, adding a column for name. That
may not sound appealing, but it may work well for you. Take a look at
www.smokeylake.com/excel. In "Excel truths," read "Data across multiple
tables." Strongly recommended.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Chance224" wrote in message
...
I have a workbook to track employee's time. There is a sheet for every
employee and then a recap sheet that totals the hours & etc. How can I
make
a macro to search for a certin name and then activate that sheet. We have
alot employee's and its a pain to search for the person and enter in the
data.

Thanks,
Chance



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Where do you store the name?

Is it in a cell (like A1) of each sheet? Or is it right on the worksheet tab?

If it's on the worksheet tab and you've got to hunt through lots to get to the
one you want, you can right click on the VCR like controls to the left of the
tabs and see a list of all the worksheets in the workbook. (You may have to
click on "more sheets" to see all.)

You could sort the worksheets in alphabetical order to make searching easier:

Chip Pearson's:
http://www.cpearson.com/excel/sortws.htm

David McRitchie's:
http://www.mvps.org/dmcritchie/excel...#sortallsheets

You could make a table of contents worksheet where you could just click on a
link to be taken to a specific worksheet.

You can find some code also at David McRitchie's site:
http://www.mvps.org/dmcritchie/excel/buildtoc.htm

Or you could have a floating toolbar that can show you the names of worksheets
to select:
http://groups.google.com/groups?thre...1C74%40msn.com

If you're new to macros, you may want to read David's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Chance224 wrote:

I have a workbook to track employee's time. There is a sheet for every
employee and then a recap sheet that totals the hours & etc. How can I make
a macro to search for a certin name and then activate that sheet. We have
alot employee's and its a pain to search for the person and enter in the data.

Thanks,
Chance


--

Dave Peterson
  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

And if you're using xl2002 or higher, there's an option under Edit|Find to
search the entire workbook (if those names are in a cell).

If you're using xl2k or below, you can use a nice Find utility from Jan Karel
Pieterse.

It's called FlexFind and you can find it he
http://www.oaltd.co.uk/MVP/

(In fact, it'll work with any version of excel.)

Chance224 wrote:

I have a workbook to track employee's time. There is a sheet for every
employee and then a recap sheet that totals the hours & etc. How can I make
a macro to search for a certin name and then activate that sheet. We have
alot employee's and its a pain to search for the person and enter in the data.

Thanks,
Chance


--

Dave Peterson
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
Linking to an Entire Sheet Chaplain Doug Links and Linking in Excel 2 December 24th 04 07:39 AM
Displaying sheet and cell value in another cell M. Beall Excel Discussion (Misc queries) 1 December 9th 04 07:35 AM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM
Sheet tabs disappear sometimes in Internet Explorer Jan Nordgreen Excel Discussion (Misc queries) 0 December 6th 04 01:34 AM
Using Function to call Woorbook Sheet Tahlmorrah Excel Discussion (Misc queries) 1 December 2nd 04 03:26 PM


All times are GMT +1. The time now is 08:12 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"