Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Celll colour as a result of a calculation Andy_Oscar_Charlie Excel Discussion (Misc queries) 3 October 9th 08 10:14 PM
splitting a celll into half or quadrants cardosol Excel Worksheet Functions 2 March 21st 08 08:34 PM
Celll Address Lookup Jason Lepack Excel Worksheet Functions 4 February 9th 07 02:25 PM
Function Pitfalls in Celll Formatting ExcelMonkey Excel Discussion (Misc queries) 1 August 9th 05 12:02 PM
checking celll in column withblue New Users to Excel 3 May 26th 05 08:39 PM


All times are GMT +1. The time now is 02:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"