Skip to content

ExcelFunction IsMacroType questions #684

Answered by keithalewis
emphasis87 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what AllowReference=true means in Excel-DNA. In the Excel C API pointers to XLOPER arguments can be specified as either type "Q" or type "U". If type "U" then Excel can hand you a reference and the function becomes volatile. If type "Q" then Excel will handily coerce that to the value that the reference points to and will not be marked volatile.

I believe IsMacroType=true allows functions to fetch cell values that are stale and call information functions that do not change the state of the workbook. It does not make a function volatile.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by emphasis87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants