I want to set a range for some coding, but the range will change each time the code is run, it will start on one row and then move down to the next each time.
If ActiveCell.Offset(0, -1).Value Like "*L001*" Then
ActiveCell.Value = Application.WorksheetFunction.networkdays(range("B2"), range("C2")) - 0.5
Else
If ActiveCell.Offset(0, -1).Value Like "*L002*" Then
ActiveCell.Value = Application.WorksheetFunction.networkdays(range("B2"), range("C2"))
End If
End If
The ranges are B2 and C2, then will change to B3 and C3, and so on, how can I change my code to reflect this?
Kind Regards