Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to write this so it will search the
whole workbook at less 10 worksheets Sub aaa() ' WhatToFind = ActiveCell.Value Cells.Find(What:=WhatToFind, After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate End Sub I want to Thank You Esau |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub aaa()
' Dim rng as Range, sh as Worksheet WhatToFind = ActiveCell.Value for each sh in Workbooks.Worksheets sh.Activate set rng = Cells.Find(What:=WhatToFind, _ After:=Range("IV65536"), _ LookIn:=xlFormulas, _ LookAt:=xlPart, _ SearchOrder:=xlByColumns, _ SearchDirection:=xlNext, _ MatchCase:=False, _ SearchFormat:=False) if not rng is nothing then rng.Select ans = msgbox( "continue searching? ", vbYesNo) if ans = vbNo then exit sub end if Next End Sub "Esau" wrote in message ... Is there a way to write this so it will search the whole workbook at less 10 worksheets Sub aaa() ' WhatToFind = ActiveCell.Value Cells.Find(What:=WhatToFind, After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate End Sub I want to Thank You Esau |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search Workbook | Excel Discussion (Misc queries) | |||
Search a Workbook | Excel Discussion (Misc queries) | |||
Search Data from one Workbook and copy it into another Workbook | Excel Discussion (Misc queries) | |||
Search within workbook | New Users to Excel | |||
Search workbook | Excel Discussion (Misc queries) |