Hi Tim,
Based on my research, the Automation interface did not expose such method
about how to start Excel.
We have two approach to create an Excel instance with automation.
1. Just as you did, load the type and use New keyword
2. Use CreateObject method, which did not take other parameters e.g. start
switch.
Also if or not we load certain Com Addin is controlled by the registry
setting.
You may check the link below.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Excel\Addins
The difference between the two keys are whether or not it is installed for
all users, if yes, the key will be registered in HKEY_LOCAL_MACHINE key.
You may check the key value LoadBehavior of the addin under the key above,
you will find different value.
? 0 = Disconnect - Is not loaded.
? 1 = Connected - Is loaded.
? 2 = Bootload - Load on application Startup.
? 8 = DemandLoad - Load only when requested by user.
? 16 = ConnectFirstTime - Load only once (on next startup).
How to build an Office 2000 COM add-in in Visual Basic
http://support.microsoft.com/kb/238228
If you want to disable certain com addin, just use registry related code to
change the LoadBehavior registry value per KB 238228
So I think you may try to use Process.Start method to start a Excel.exe
process with argument.
Description of the startup switches for Excel
http://support.microsoft.com/kb/291288
You may have a try and let me know the result.
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.