View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel[_449_] joel[_449_] is offline
external usenet poster
 
Posts: 1
Default Setting font properties using function


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