Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Automation Add-In, Accessing the application object

I am currently moving a VB6 Excel add-in(xla) over to a C# Automation
Add-In(dll). The previous code used Application.StatusBar to access and
manipulate the text in the status bar. How can this be done in my C# add-in?
Thanks.

Note: The only example i saw of accessing the Excel application was using
the following line:
object oName =
applicationObject.GetType().InvokeMember("Name",Bi ndingFlags.GetProperty,null,applicationObject,null );
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Excel Automation Add-In, Accessing the application object


"smedcalf" wrote in message
...
I am currently moving a VB6 Excel add-in(xla) over to a C# Automation
Add-In(dll). The previous code used Application.StatusBar to access and
manipulate the text in the status bar. How can this be done in my C#

add-in?
Thanks.

Note: The only example i saw of accessing the Excel application was using
the following line:
object oName =

applicationObject.GetType().InvokeMember("Name",Bi ndingFlags.GetProperty,nul
l,applicationObject,null);

The application object is passed to your add-in if you create a COM add-in.
This means you have to implement the IDTExtensibility2 interface.

http://msdn.microsoft.com/library/de...2Interface.asp

Best Regards,
Fredrik


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation Testing in an Excel application. HC Excel Discussion (Misc queries) 0 March 30th 05 02:05 AM
help !!! please... closing excel application using automation No Name Excel Programming 3 January 30th 04 03:58 PM
Using Userform object in Excel via automation from VB 6 Howard Kaikow Excel Programming 10 December 5th 03 02:58 PM
Accessing different versions of Excel VBA from another application Bradley Dawson Excel Programming 11 October 11th 03 09:58 PM
Automation Error: The Object Invoked Has Disconnected from Its Clients (Excel) Vaibhav Excel Programming 0 September 8th 03 04:57 PM


All times are GMT +1. The time now is 02:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"