Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hi,
I have the following code:
This works as long as I have an interior color applied, but unable to set the font property if none has beeen assigned. Could somebody suggest a fix please?
Cheers,
Jon
I have the following code:
Code:
Sub Error_Hide()
Dim C As Range
For Each C In Selection
If IsError(C.Value) Then
C.Font.ColorIndex = C.Interior.ColorIndex
End If
Next C
End Sub
This works as long as I have an interior color applied, but unable to set the font property if none has beeen assigned. Could somebody suggest a fix please?
Cheers,
Jon