troubleshooting Question

If more than 12 characters in MSFlexGrid1 cell from column 2

Avatar of Wilder1626
Wilder1626Flag for Canada asked on
Visual Basic Classic
3 Comments1 Solution335 ViewsLast Modified:
Hello all

I would like to put each cell that have more then 12 characters in orange in my MSFlexGrid1 column 2.

How can i do that?

Thanks again

Dim j As Long
 Dim iCount As Integer

    iCount = 0
For j = 1 To Form6.MSFlexGrid1.Rows - 1



If Left(Form6.MSFlexGrid1.TextMatrix(j, 2), 13) <> "" Then
   
   Form6.MSFlexGrid1.Row = j
   Form6.MSFlexGrid1.Col = 2
   Form6.MSFlexGrid1.CellBackColor = &H80FF&
   iCount = iCount + 1
End If

Next
msgbox  iCount
ASKER CERTIFIED SOLUTION
Ark

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros