ChuckDrago
Active Member
- Joined
- Sep 7, 2007
- Messages
- 470
- Office Version
- 2010
- Platform
- Windows
Hi everyone,
This problem is driving us all nuts! I have a table with 4 columns. A macro seeks to FIND a given number, looping through column A, and when found report the values in cols B,C, and D via ActiveCell.Offsets.
Cell (A11) contains the value 110. However, the results of the offset figures do not match expected results. In inspecting the table, I noticed that the value on cell (C5) is $1,105,899 and the reported offsets correspond to its neighboring figures. It appears that the 110 start of C5 has tricked the FIND method to deliver the wrong result.
The find syntax I am using is:
Columns("A:A").Select
Cells.Find(What:=Fam, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
where Fam is the variable holding the values 101, 102, etc. in the search loop.
Any clever ideas to force the search to column A and only column A?
This problem is driving us all nuts! I have a table with 4 columns. A macro seeks to FIND a given number, looping through column A, and when found report the values in cols B,C, and D via ActiveCell.Offsets.
Cell (A11) contains the value 110. However, the results of the offset figures do not match expected results. In inspecting the table, I noticed that the value on cell (C5) is $1,105,899 and the reported offsets correspond to its neighboring figures. It appears that the 110 start of C5 has tricked the FIND method to deliver the wrong result.
The find syntax I am using is:
Columns("A:A").Select
Cells.Find(What:=Fam, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
where Fam is the variable holding the values 101, 102, etc. in the search loop.
Any clever ideas to force the search to column A and only column A?