Hello
I currently have some code which runs through the whole of the used range
LastRow = Range("A" & Rows.Count).End(xlUp).Row
For x = 2 To lastRow
Currently it scans for certain keywords on the sheet like this:-
If Range("M" & x).Value = "AUG" Or Range("M" & x) = "SEP" Then
However I would like to do certain things based on a number rather than a string such as something like this:-
If Range("P" & x).Value <30 Then
If Range("P" & x).Value >30 and Range("P" & x).Value <60 Then
However I am getting a mismatch.
Could anyone help me out with the code I need? I guess I need to convert it from a string to an int?
Thanks
M