M
M.Siler
When I reference the below function in 2003 I get function displayed... now
in 2007 I get
#NAME?
Any idea what I need to change/set in 2007 so it will run this function?
Function formulaText(x As Range)
'returns the text equivalent of formula in upper left cell in range x
'example: =formulatext(a1) returns the formula found in cell a1 of
active worksheet
'example: =formulatext(a1:b5) returns the formula found in cell a1 of
active worksheet
formulaText = x.Cells(1, 1).Formula
End Function
Thanks,
Mark
in 2007 I get
#NAME?
Any idea what I need to change/set in 2007 so it will run this function?
Function formulaText(x As Range)
'returns the text equivalent of formula in upper left cell in range x
'example: =formulatext(a1) returns the formula found in cell a1 of
active worksheet
'example: =formulatext(a1:b5) returns the formula found in cell a1 of
active worksheet
formulaText = x.Cells(1, 1).Formula
End Function
Thanks,
Mark