Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Not Urgent
When a function is executed, the VBA system must know the location of the
cell in which the function call is located. Is it possible for the code within a function to get the location in the spreadsheet wihtout forcing the user to include it as an extra argument?? Thanks in Advance -- Gary's Student |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Not Urgent
set rng = Application.Caller
should give you what you want. -- Regards, Tom Ogilvy "Gary's Student" wrote in message ... When a function is executed, the VBA system must know the location of the cell in which the function call is located. Is it possible for the code within a function to get the location in the spreadsheet wihtout forcing the user to include it as an extra argument?? Thanks in Advance -- Gary's Student |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Not Urgent
Function Gary()
Debug.Print Application.Caller.Address End Function -- HTH RP (remove nothere from the email address if mailing direct) "Gary's Student" wrote in message ... When a function is executed, the VBA system must know the location of the cell in which the function call is located. Is it possible for the code within a function to get the location in the spreadsheet wihtout forcing the user to include it as an extra argument?? Thanks in Advance -- Gary's Student |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Not Urgent
Tom & Bob:
Thank you both very much. -- Gary's Student "Bob Phillips" wrote: Function Gary() Debug.Print Application.Caller.Address End Function -- HTH RP (remove nothere from the email address if mailing direct) "Gary's Student" wrote in message ... When a function is executed, the VBA system must know the location of the cell in which the function call is located. Is it possible for the code within a function to get the location in the spreadsheet wihtout forcing the user to include it as an extra argument?? Thanks in Advance -- Gary's Student |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IME MODE FOR EXCEL 2007 (URGENT URGENT) | Excel Discussion (Misc queries) | |||
Urgent | Excel Worksheet Functions | |||
Urgent-Urgent VBA LOOP | Excel Discussion (Misc queries) | |||
Macro help urgent urgent | Excel Programming | |||
Macro help urgent urgent | Excel Programming |