Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

[RESOLVED] Highlighting Complete Row of FlexGrid

$
0
0
Hi,
I want to highlight the complete row of flexgrid, i m using the below code to search and highlight but it starting the highlight from 2nd column. I have 5 columns, last one of them is hidden as its colwodth is 0
Code:

Dim Target As String
Dim z As Integer

   
    Target = LCase$(Srch)
    For z = 1 To msh.Rows - 1
        If InStr(1, LCase$(msh.TextMatrix(z, 0)), Target) Then
            With msh
                Dim y As Integer
                    For y = 1 To .Cols - 1
                        .Row = z
                        .Col = y
                        .CellBackColor = RGB(145, 175, 210)
                        .CellFontBold = True
                    Next y
            End With
        End If
    Next z


Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>