Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Search Wooksheet

Hi,

I have a spreadsheet that has four tabs (Dave, Pete, Andy
& Blank) within Dave, Pete, Andy is lots of information.
Coloumn A shows a name, Column B a date and Column c show
other information.

I would like a MACRO that when clicked on it will ask me
for a Name, Start Date and End Date. When these are
entered it will search the three worksheets (Dave, Pete &
Andy) it will look for the name in column A then check
column b for dates inbetween those input. If it finds one
where the name matches and the date is inbetween those
input I want it to copy that row onto the blank sheet
etc...

Can someone help.....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Search Wooksheet

Glenn:

Try recording a macro in which you use the AutoFilter to set the criteria
for a certain result. Then modify the macro to use three Input Boxes to put
the name and dates into three strings. Substitute these strings for your
AutoFilter criteria, and you'll see your results. Then copy what you see
and Paste SpecialVisible Cells onto the blank sheet. If you have "lots of
information", an AutoFilter will show you a constrained results set faster
than iterating through every row.

Ed

"Glenn Robertson" wrote in message
...
Hi,

I have a spreadsheet that has four tabs (Dave, Pete, Andy
& Blank) within Dave, Pete, Andy is lots of information.
Coloumn A shows a name, Column B a date and Column c show
other information.

I would like a MACRO that when clicked on it will ask me
for a Name, Start Date and End Date. When these are
entered it will search the three worksheets (Dave, Pete &
Andy) it will look for the name in column A then check
column b for dates inbetween those input. If it finds one
where the name matches and the date is inbetween those
input I want it to copy that row onto the blank sheet
etc...

Can someone help.....



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
excel wooksheet problem rocket Excel Discussion (Misc queries) 1 January 16th 09 04:11 PM
maro to save wooksheet & open in sheet 1 vcff Excel Worksheet Functions 1 November 11th 06 03:18 PM
how do I print gridlines for Excel wooksheet AdrianneH Excel Discussion (Misc queries) 2 September 7th 06 08:58 PM
How to extract data from a wooksheet in a closed workbook kuansheng Excel Worksheet Functions 2 February 15th 06 03:46 AM
Help with Promting for wooksheet name in macro. Leatherfoot[_2_] Excel Programming 3 May 14th 04 03:56 PM


All times are GMT +1. The time now is 11:31 PM.

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"