scriptscribe
MIS
Hi, hopefully someone can help me with this. I have a spreadsheet that I keep on a commonshare network drive where I fix system issues and post them as "Completed" or "Pending." I also color the entire row green when the item is entered to indicate that it is "pending" and change the color to peach when it is "completed." What i want to do is use VBA to automatically change the color of the range of cells (A_:I_) to peach or green when I change the value of column B to "Pending" or "Completed"
Dim wksht as Worksheet
Dim rng as Range
For each rng in wksht
If rng.Value = "Pending" then
A_.color = RGB(0,255,0)
B_.color = RGB(0,255,0)
etc..
I_.color = RGB(0,255,0)
End if
Else
A_.color = RGB(Peach)
B_.color = RGB(Peach)
etc..
I_.color = RGB(Peach)
Next rng
Dim wksht as Worksheet
Dim rng as Range
For each rng in wksht
If rng.Value = "Pending" then
A_.color = RGB(0,255,0)
B_.color = RGB(0,255,0)
etc..
I_.color = RGB(0,255,0)
End if
Else
A_.color = RGB(Peach)
B_.color = RGB(Peach)
etc..
I_.color = RGB(Peach)
Next rng