Try these changes
Sub test()
Set xlSht = ActiveSheet
Call NameFormatType1(xlSht.Cells(1, 1), 255)
End Sub
Private Sub NameFormatType1(ByRef cell As Range, _
ByVal NmCol As Long)
With cell.Font
.Color = RGB(0, 0, NmCol)
.Bold = True
End With
End Sub
--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=166121
Microsoft Office Help