Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
UDF: Celll Row Number
I'm writing a UDF function that requires the row number of the cell it's in.
How do I write a simple UDF that returns the row in which the function is called from? For example, the function RowFind below will return the value the CURSOR is in. Function RowFind RowFind = ActiveCell.Row End Function Is there a an alternative to ActiveCell that will give the cell the FUNCTION is in? Thanks! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Celll Row Number
Function RowFind()
RowFind = Application.Caller.Row End Function -- __________________________________ HTH Bob "Arun" wrote in message ... I'm writing a UDF function that requires the row number of the cell it's in. How do I write a simple UDF that returns the row in which the function is called from? For example, the function RowFind below will return the value the CURSOR is in. Function RowFind RowFind = ActiveCell.Row End Function Is there a an alternative to ActiveCell that will give the cell the FUNCTION is in? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Changing Celll colour as a result of a calculation | Excel Discussion (Misc queries) | |||
splitting a celll into half or quadrants | Excel Worksheet Functions | |||
Celll Address Lookup | Excel Worksheet Functions | |||
Function Pitfalls in Celll Formatting | Excel Discussion (Misc queries) | |||
checking celll in column | New Users to Excel |