Hi,
I have a range of number from A1 to F10. I set this range in VBA as:
Dim r As Range
Set r = Selection.CurrentRegion
I want to format the range as follows:
1) A1 to bold and color 55
2) B1 to F1 to bold and color 50
In my code I have:
r.Cells(1, 1).Font.ColorIndex = 55
for C = 1 to 5
r.Cells(1, C).Font.ColorIndex = 50
next C
When I run this code nothing happens. Can someone help me here?