Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Claus,
I wrote the function. I am very greatful for your help. Thank you very much for giving your time. This was very helpful for me. The function is like below.The function has one requirement: It has to be initially stated in the first row. Function myfunc(x As Range, Optional rowno As Range) If rowno Is Nothing Then Set rowno = Application.Caller rx = x.Rows.Count a1 = (rowno.Row - 1) Mod (rx + 1) a2 = Int((rowno.Row - 1) / rx) + 1 myfunc = Application.WorksheetFunction.Index(x, a1, a2) End Function Again thanks a lot. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cells w/ user defined function do not auto update | Excel Worksheet Functions | |||
Making Changes to Cells from a user defined function | Excel Programming | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Need to open the Function Arguments window from VBA for a user defined function. | Excel Programming | |||
Obtaining column/row numbers of cells in user defined function | Excel Programming |