On Mar 6, 3:06 pm, "Bernie Deitrick" <deitbe @ consumer dot org>
wrote:
> Atem,
>
[quoted text clipped - 46 lines]
>
> >> > Lacty
Bernie
I have gone with the UDF. It very simple and easy to use. If I take
this one step further, I have some cells with range names so using the
udf MyForm() returns = RangeName. Is it possible to write a code or
function that would return the actual cell address as oppose to the
range name?
Thanks very much
Bernie Deitrick - 06 Mar 2008 17:13 GMT
Atem,
Give this version a try - it will replace single name references in cases like
=myName
but not in cases like
=myName * 4
HTH,
Bernie
MS Excel MVP
Function MyForm(myC As Range) As String
Dim myAdd As String
MyForm = myC.Formula
On Error GoTo NotName
myAdd = Range(Mid(MyForm, 2, Len(MyForm))).Address(False, False)
MyForm = "=" & myAdd
NotName:
End Function
> On Mar 6, 3:06 pm, "Bernie Deitrick" <deitbe @ consumer dot org>
> wrote:
[quoted text clipped - 58 lines]
>
> Thanks very much