LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problems with Excel Com Addin

Dim WithEvents moXL As Excel.Application
....
Private Sub AddinInstance_OnConnection(ByVal Application
As Object, ByVal ConnectMode As
AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As
Object, custom() As Variant)
Dim cbcpop As CommandBarControl
Dim cbRisk As CommandBarControl

Set moXL = Application
CreateBar
About.Show

End Sub
....


When I try to use moXL later, such as moXL.ActiveWorkbook
or moXL.Workbooks etc. I get Object Required error
messages.

The code I am trying is very close to what I have found on
Microsoft web sites and in books etc. so I guess I have
just made a stupid mistake someplace... Am I doing the
right thing though?

Steve

-----Original Message-----
Steve,

Specifically what problems are you having? Perhaps you

could post
some sample code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Steve Gailey" wrote

in message
...
I am converting an XLA to a com addin and I am having
problems referencing the Active Workbook and Active
Worksheet.

I have saved a reference to "Application" in

OnConnection,
but referencing this doesn't seem to help. Any

suggestions?

Steve



.

 
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
addin for excel installation Kardock Setting up and Configuration of Excel 0 February 13th 09 07:44 PM
What is an addin (in Excel) and how can we create one? shajueasow Excel Discussion (Misc queries) 1 July 17th 05 04:08 AM
Excel Addin Developers XZAKT Media, Australia Excel Programming 0 August 7th 03 02:35 PM
Calling an Excel Addin from VBA ABN Excel Programming 2 July 31st 03 02:33 PM
Calling an Excel Addin from VBA ABN Excel Programming 0 July 31st 03 02:02 PM


All times are GMT +1. The time now is 08:50 PM.

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

About Us

"It's about Microsoft Excel"