When developing VB programs for excel sheets, some times we need to track certain columns, rows or cells.
For an example think you have to do calculation for each and every cell in a excel sheet, only if there column heading is bold.
So below code can be used to check whether cell "A1" is bold or not
If DR.Range("A1").Font.Bold = True Then Do the calculation End If |