Article ID: 301443 - Last Review: October 12, 2007 - Revision: 5.3 Automation calls to Excel from an XLL may fail or return unexpected results
This article was previously published under Q301443 SYMPTOMS If an XLL that is loaded in Microsoft Office Excel attempts to automate
Excel by using its Visual Basic for Applications Object Model, rather than the
Excel4() C API for which XLLs were designed, method calls may return unexpected
results, or may crash altogether. CAUSE A function that is defined in an XLL can be called under
three circumstances:
RESOLUTION In order to ensure that they function properly, no
Automation calls should be made from an XLL. Instead, all commands to Excel
from the XLL should be sent using the Excel4() C API. For more information on
writing XLLs, see the "References" section. STATUS
This behavior is by design. REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
178474
(http://support.microsoft.com/kb/178474/
)
How to build an add-in (XLL) for Excel using Visual C++
143466
(http://support.microsoft.com/kb/143466/
)
Macro97.exe file available on online services
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
