Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Matthew Wieder" wrote in message
... We inherited an xll which provides a formula that can be used in a cell in Excel. If someone uses that formula on a spredahseet (let's say in cell F4) and then they recalc, is there some way for us in that xll code to know that the formula is in cell F4? thanks! Hi Matthew, Here's one way to determine the address of a function's calling cell: XLOPER xlRef, xlRow, xlCol, xlAddress; Excel4(xlfCaller, &xlRef, 0); xlRow.xltype = xltypeNum; xlRow.val.num = xlRef.val.sref.ref.rwFirst + 1; xlCol.xltype = xltypeNum; xlCol.val.num = xlRef.val.sref.ref.colFirst + 1; Excel4(xlfAddress, &xlAddress, 2, &xlRow, &xlCol); // xlAddress now contains the calling cell's address -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reference Formula Help | Excel Discussion (Misc queries) | |||
How do I set a formula, that add next cell reference in a Formula | Excel Worksheet Functions | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Look Up Reference Formula | Excel Discussion (Misc queries) | |||
Is it Possible in a formula to have a formula for cell reference? | Excel Worksheet Functions |