Solved

MS FlexGrid

Posted on 2003-11-10
6
599 Views
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?
0
Comment
Question by:JFrye
[X]
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
6 Comments
 
LVL 5

Expert Comment

by:g0rath
ID: 9717582
MSFlexGrid1.Row = 9
MSFlexGrid1.CellFontBold = True
0
 

Author Comment

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

Accepted Solution

by:
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:JFrye
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
0
 

Author Comment

by:JFrye
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!
0
 
LVL 5

Expert Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

729 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