PC Review


Reply
Thread Tools Rate Thread

Calling sheet when usgin xlfCaller

 
 
Max Reimerson
Guest
Posts: n/a
 
      24th Feb 2009
Hi I am using the Excel SDK to write an XLL plug-in in C++.

I need to figure out the sheet my worksheet functions are using for my
plug-in. I use the xlfCaller which gives me a sheet ref, i.e. without the
sheetID. To get the sheetID I use the xlSheetID which gives me the ID of the
active sheet. However the problem is if a function is referencing a cell in a
different sheet. If I then change the referenced cell the function would give
me the sheetID of the active sheet, which is different to the sheet it sits
in.

I have built a plug-in that attaches “objects” to my functions, but that
means that I have to constantly know which cell every function is executed
from.

I saw that there was a proposed function xlCallerAddress that would do
exactly this ( http://blogs.msdn.com/excel/archive/...13/664162.aspx ).
However that was taken out before it was shipped (
http://blogs.msdn.com/excel/archive/...12/751080.aspx )

Is there any way of getting access to that function or get the sheet of the
calling cell even if it isn’t in the active sheet.

Many Thanks,

Max
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a Sub from Another Sheet baconcow Microsoft Excel Programming 3 29th May 2008 05:03 PM
usgin a rdm socket cold Microsoft Dot NET 0 29th Jun 2005 03:50 PM
Re: usgin a macro within an IF statement Tom Ogilvy Microsoft Excel Programming 0 22nd Jul 2004 05:27 PM
Why wouldn't calling the Activate sub for a sheet automatically call that sheet's Worksheet_Activate() sub? Scott Lyon Microsoft Excel Programming 3 19th Aug 2003 03:03 PM
xlfCaller Aaron Queenan Microsoft Excel Programming 1 2nd Jul 2003 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.