Posted 13 May 2019, 11:38 pm EST
Trying to determine if a current Cell has Bold font on it. I thought it would be as simple as:
if FpSpread.ActiveSheet.ActiveCell.Font.Bold then
’ do stuff
end if
but getting the below error… it just doesn’t make sense that I can’t check the bold property of the current cell.
FpSpread.ActiveSheet.ActiveCell.Font.Bold = ‘FpSpread.ActiveSheet.ActiveCell.Font.Bold’ threw an exception of type ‘System.NullReferenceException’
I eventually want to be able to set the font on specific cells to bold programmatically as well but I need to be able to check the Bold Property first.
Thanks for any guidance.
Kevin