Hello all. I have a user defined function that I am trying to get to
change the font of the cell that calls the function. Any idea why
ActiveCell.Font.Name="fontname" would not work. I have tried
Application.Caller.ActiveCell.Font.Name as well with no luck. Here is
the current code.
Function eavsplanindicator(ea, plan)
'************************************************************************************************************
'Author:Daniel McCollick
'Date: 5/13/05
'Purpose: To print a circle, square, or diamond as an indicator
depending on ea vs plan values
'************************************************************************************************************
R = Application.Caller.Row
C = Application.Caller.Column
If (ea <= plan) Then
ActiveCell.Font.Name = "Webdings 2"
'This does not change the font???
eavsplanindicator = "-"
End If
..
..
..
..
End Function
Bookmarks