MisterProzilla
Active Member
- Joined
- Nov 12, 2015
- Messages
- 264
Hi,
I want to be able to find a non-matching value in VBA.
So, for example, this code finds the column of the first cell containing a number 1:
I'm looking for a way to change it so that it finds the column of the first value that is not 1.
Does anyone know how to do this?
I want to be able to find a non-matching value in VBA.
So, for example, this code finds the column of the first cell containing a number 1:
Code:
Sheet4.Range("D4:N4").find(1, searchdirection:=xlNext).Column
I'm looking for a way to change it so that it finds the column of the first value that is not 1.
Does anyone know how to do this?