Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How do I return the row number of the current (not necessarily active) cell
for use in a custom formula? =Row() in a cell returns that cell's row number, but I can't figure out how to use that in a custom formula. For example, code such as this doesn't work because Excel gives me a compile error on "=Row()". Public Function myFunction() Dim Variable As Integer, Result As Integer Variable = Row() Result = Variable + 10 myFunction = Result End Function Thanks very much. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to determine number of current records by week | Excel Worksheet Functions | |||
How do you return current ROW number to definition in NAME function? | Setting up and Configuration of Excel | |||
How do I convert a formula calculated number to a current value ? | New Users to Excel | |||
Formula for current month minus one = Quarter number in a macro. | Excel Discussion (Misc queries) | |||
Return number of current sheet | Excel Worksheet Functions |