Search Wooksheet

  • Thread starter Thread starter Glenn Robertson
  • Start date Start date
G

Glenn Robertson

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.....
 
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 Special>Visible 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel spreadsheet to Word document 1
Help needed to writing a macro to put the year in column B of a tableusing Table nomenclature & the 7
Date subtraction 1
Excel Sumproduct 0
Excel 2 into 1 6
Excel Import Comments 3
Excel Is this possible?? 3
Advanced Filter 6

Back
Top