MS FlexGrid

Posted on 2003-11-10
Last Modified: 2010-05-01
In a flexgrid of 4 columns and 10 rows, how can I make the data in the last row (row 9) bold?
Question by:JFrye
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

ID: 9717582
MSFlexGrid1.Row = 9
MSFlexGrid1.CellFontBold = True

Author Comment

ID: 9718008
That only made the single cell (Row 9, Col 1) Bold. I need Row 9, Cols 0-3 Bold, please.

Accepted Solution

g0rath earned 20 total points
ID: 9718035
You have the code for one, it's trivial to do it for N rows

Dim i as Integer
MSFelxGrid1.row = YourRow
For i = 0 To MSFlexGrid1.Cols - 1
        MSFlexGrid1.Col = i
        MSFlexGrid1.CellFontBold = True
Next i
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 9718041
Ok, I figured it out:

Private Sub BoldRow()
    Dim intBold As Integer
    For intBold = 0 To 3
        grdInfo.Row = 9
        grdInfo.Col = (intBold)
        grdInfo.CellFontBold = True
    Next intBold

End Sub

Author Comment

ID: 9718052
Thanks! I actually figured it out seconds after you posted a reply. Hehe... Your first answer definately jump-started me, so you would get the points anyways. Thanks again!

Expert Comment

ID: 9718249
No problem, sometimes it takes nothing more that that Ah Hah! Experience

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question