Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You don't need the quotes on this statement
Selection.Find(What:="a", should be Selection.Find(What:=a, " wrote: I want to quickly find all data in column A to finding range in column B toW. I set the loop in column A and use find method for range column B toW , but it doesn't work. Please find me out. Here is my code: Sub FinalMacro() Dim i As Integer Dim a As Variant On Error Resume Next For i = 5 To 30 Cells(i, 1).Offset(1, 0).Select a = Cells(i, 1).Value Sheets("HS").Range("B:W").Select Selection.Find(What:="a", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False).Activate Next i End sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't find the FIND in Excel | Excel Discussion (Misc queries) | |||
Find formatting doesn't work: "Excel cannot find data" | Excel Discussion (Misc queries) | |||
Despite data existing in Excel 2002 spreadsheet Find doesn't find | Excel Discussion (Misc queries) | |||
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? | Excel Discussion (Misc queries) | |||
Excel has a "Find Next" command but no "Find Previous" command. | Excel Discussion (Misc queries) |