vamshedhar
New Member
- Joined
- Oct 3, 2013
- Messages
- 8
I am having a row with values from 21 to 45 and continued again from 1 to 25
<tbody>
</tbody>
to find column position of "1" i am using code
Worksheets("sheet1").Rows(2).Find(What:="1", LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False).Column
But it is returning column number of 31 and when i delete or hide that column it returns column number of 41.
Cant i search for exact value 1 in my row???
Some unknown number of rows in the beginning | 25 | 26 | ... | 40 | 41 | 42 | 43 | 44 | 45 | 1 | 2 | 3 | 4 | . | . | 24 | 25 |
<tbody>
</tbody>
to find column position of "1" i am using code
Worksheets("sheet1").Rows(2).Find(What:="1", LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False).Column
But it is returning column number of 31 and when i delete or hide that column it returns column number of 41.
Cant i search for exact value 1 in my row???