Victor Charles
asked on
Help with simplifying For Next loop for multiple Grids
Hello,
How do I modify the code to avoid writing the same code for multiple Grids (C1Screen1,C1Screen2,C1Scr een3)?
How do I modify the code to avoid writing the same code for multiple Grids (C1Screen1,C1Screen2,C1Scr
For i = 0 To Me.C1Screen1.Rows.Count - 1
For j = 1 To Me.C1Screen1.Columns.Count - 1
If Me.C1Screen1.Rows(i).Cells(j).Value = "" Then
Me.C1Screen1.Rows(i).Cells(j).Style.BackColor = Color.Red
End If
Next
Next
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, will try it and get back to you.
ASKER
Is it possible to use this approach and replace Me.C1Screen1 with curXYZ ?
Open in new window
Thanks,
V.