Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could group all the sheet and to Edit=Find
if you want a macro: Sub SearchSheets() Dim ans As String, rng As Range Dim sh As Worksheet, saddr As String Dim res As Long ans = InputBox("Enter flight number: ") If Len(Trim(ans)) = 0 Then Exit Sub For Each sh In Worksheets Set rng = _ sh.Columns(8).Find(What:=ans, _ After:=sh.Range("H65536"), _ LookIn:=xlValues, _ LookAt:=xlWhole, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False) If Not rng Is Nothing Then saddr = rng.Address Do Application.Goto rng, True res = MsgBox("Continue Searching?", vbYesNo) If res = vbNo Then Exit Do Set rng = sh.Columns(8).FindNext(rng) Loop While rng.Address < saddr End If If res = vbNo Then Exit For Next End Sub -- regards, Tom Ogilvy "acss" wrote: I have a workbook that that is sent to me on a monthly basis and it contains 8 sheets of data. I spent a huge amount of time searching flight numbers on column H. Is there a way to automate the search so i do not have to go to each sheet and search column H row by row? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"search" a different sheet with multiple criteria | Excel Worksheet Functions | |||
Search for rows in one sheet and copy into another sheet based on customer id | Excel Worksheet Functions | |||
Search text in multiple files in multiple directories | Excel Programming | |||
Search multiple sheets, then paste results in new sheet | Excel Programming | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions |