I'm attempting to build a subroutine that compares a subset of font properties of two cells. What I have so far looks like this:
Private Sub testFonts(ws1 As Worksheet, ws2 As Worksheet, ws3 As Worksheet, lngR, lngC, lngSumR)
Dim property
Dim aFonts
aFonts = Array("Bold", " ColorIndex", " FontStyle", " Italic", " Name", " Size", " ThemeColor", " ThemeFont", " Underline")
For Each property In aFonts
If ws1.Cells(lngR, lngC).Font.property <> ws2.Cells(lngR, lngC).Font.property Then
End If
Next
End Sub
Obviously, there is no property "property" of the Font object. What method, if any, can I use to test whether properties are identically set in the two cells?
Many thanks.
George
Bookmarks