tezza
Active Member
- Joined
- Sep 10, 2006
- Messages
- 384
- Office Version
- 2016
- 2010
- Platform
- Windows
- Web
Hi
I'm just wondering if there's a way to tidy up this piece of coding:
It looks in Row G for "Shadowing" then gives a value of Cell S (same row) if true, also Columns U to Y will then be 0
I'm just wondering if there's a way to tidy up this piece of coding:
VBA Code:
celltxt = ActiveSheet.Range("G" & n).Text
If InStr(1, celltxt, "Shadowing") Then
Range("T" & n).Value = Range("S" & n)
Range("U" & n).Value = "0"
Range("V" & n).Value = "0"
Range("W" & n).Value = "0"
Range("X" & n).Value = "0"
Range("Y" & n).Value = "0"
End If
It looks in Row G for "Shadowing" then gives a value of Cell S (same row) if true, also Columns U to Y will then be 0