How to change color font (red) from row 3 to the end of last column in msflexgrid
in my case have 7 column
change color font in entire row in msflexgrid
-
- PlatinumLounger
- Posts: 4497
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 79444
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: change color font in entire row in msflexgrid
Do you really mean from row 3? Or from column 3 to column 7?
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4497
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 79444
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: change color font in entire row in msflexgrid
I cannot test this myself.
Code: Select all
Sub Test()
Dim r As Long
Dim c As Long
With Me.MSFlexGrid1
For r = 2 To .Rows - 1
For c = 0 To 6
.Row = r
.Col = c
.CellForeColor = vbRed
Next c
Next r
End With
End Sub
Best wishes,
Hans
Hans