Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am writing a general function and I would like to know what row the
function was excuted from, so that I can place that value in Cells(row,col).value I have not been to find a behavior that will do this. can anyone help thanks Bob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob,
If I understand correctly ActiveCell.Row should do the job ... Now if you need to store it, you would need to have a variable Dim MyRow As Integer and place following line in the right spot in your code MyRow = ActiveCell.Row HTH Cheers Carim |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
MsgBox ActiveCell.Row End Sub RBS "Bob Taylor" wrote in message ... I am writing a general function and I would like to know what row the function was excuted from, so that I can place that value in Cells(row,col).value I have not been to find a behavior that will do this. can anyone help thanks Bob |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Within an User Defined Function:
Application.Caller.row HTH -- AP "Bob Taylor" a écrit dans le message de ... I am writing a general function and I would like to know what row the function was excuted from, so that I can place that value in Cells(row,col).value I have not been to find a behavior that will do this. can anyone help thanks Bob |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just note that in a User Defined function used in a worksheet (of which I
believe Ardus speaks), you can not write values to other cells. -- Regards, Tom Ogilvy "Ardus Petus" wrote in message ... Within an User Defined Function: Application.Caller.row HTH -- AP "Bob Taylor" a écrit dans le message de ... I am writing a general function and I would like to know what row the function was excuted from, so that I can place that value in Cells(row,col).value I have not been to find a behavior that will do this. can anyone help thanks Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding the current year | Excel Worksheet Functions | |||
finding 75 days before current date | Excel Worksheet Functions | |||
Finding the current worksheet name | Excel Programming | |||
Finding Current Path | Excel Programming | |||
Finding the current date | Excel Programming |