lhernandez
Active Member
- Joined
- May 22, 2006
- Messages
- 282
I am working with a worksheet that list numbers or words through column A.
For ex.
380
Control
1000
2500
500
DC
100
20000
I have written a macro to search through this column and on a new worksheet, if the value is less than 1000, then it is assigned to type A.
If the value is between 1001 and 6600 then it is assigned to type B.
If the value is greater than 6601 then it is assigned to C, and if the cell equals "Control" or "DC" then it is assigned to type D.
But for some reason Control and DC is read in the macro as greater than 6601 and is assigned to type C.
How can I tell the cell to read between numbers and characters or how would I go about fixing this?
Any help would be great
Thank you,
For ex.
380
Control
1000
2500
500
DC
100
20000
I have written a macro to search through this column and on a new worksheet, if the value is less than 1000, then it is assigned to type A.
If the value is between 1001 and 6600 then it is assigned to type B.
If the value is greater than 6601 then it is assigned to C, and if the cell equals "Control" or "DC" then it is assigned to type D.
But for some reason Control and DC is read in the macro as greater than 6601 and is assigned to type C.
How can I tell the cell to read between numbers and characters or how would I go about fixing this?
Any help would be great
Thank you,