April 2006
Beginner
1114 pages
98h 16m
English
range.NumberFormat
Sets or returns the number formatting for the specified range. Returns Null if the range has mixed formats. The format code corresponds to the Format Codes option in the Format Cells dialog box. The following code changes the color of the specified range to red:
Dim w As Worksheet
Set w = Worksheets("WombatBattingAverages")
w.Range("B1:B5").NumberFormat = "#.000"Read now
Unlock full access