Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub ColorIndexList()
' Begin error trapping.
On Error GoTo Done
With [A1]
.Value = "Color"
' Put the words Color Index Number one cell to right
.Offset(0, 1).Value = "Color Index Number"
End With
' Select one cell down from active cell.
' Begin loop from 1 to 56.
For xColor = 1 To 56
' Apply color and pattern properties
With Cells(xColor + 1, 1)
With .Interior
.ColorIndex = xColor
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
.Offset(0, 1).Value = xColor
End With
Next xColor
Exit Sub
Done:
MsgBox "ERROR: " & xColor
End Sub