M
mark kubicki
how do i get the column number of the cell that my formula is written in
guess it's not: activecell.column
guess it's not: activecell.column
Tom Ogilvy said:I put this in a general module
Public Function MyFunc()
Set rng = Application.Caller
MyFunc = rng.Column
End Function
in the worksheet I put in
=myfunc()
and it returns the column of the cell containing the function which is then
displayed in the cell.
What are you doing?
--
Regards,
Tom Ogilvy
written