Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Bad declartion of Excel in VB program

I'm trying to instantiate a excel application from VB and
have found several examples of programs in MS help
articles how to do this. However the statement "xlApp1 As
Excel.Application" causes the runtime error "User-defined
type not defined" What am I missing? --- Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Bad declartion of Excel in VB program

To use that construct, you need to create a reference to the Excel Object
library - otherwise, VB doesn't know what Excel.Application is.

--
Regards,
Tom Ogilvy

Mike wrote in message
...
I'm trying to instantiate a excel application from VB and
have found several examples of programs in MS help
articles how to do this. However the statement "xlApp1 As
Excel.Application" causes the runtime error "User-defined
type not defined" What am I missing? --- Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Bad declartion of Excel in VB program

hay Tom. Yep that was it. This now allows me to have an
early binding object. I've been poking at it to try to get
the chart to show the graph of the data but unlike the
late binding method:
xlChart1.SetSourceData Source:=xlSheet1.Range("A1").Resize
(100, 2)

I can't seem to find the method? Any help would be much
appreciated. --- Mike

-----Original Message-----
To use that construct, you need to create a reference to

the Excel Object
library - otherwise, VB doesn't know what

Excel.Application is.

--
Regards,
Tom Ogilvy

Mike wrote in

message
...
I'm trying to instantiate a excel application from VB

and
have found several examples of programs in MS help
articles how to do this. However the statement "xlApp1

As
Excel.Application" causes the runtime error "User-

defined
type not defined" What am I missing? --- Mike



.

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
Excel Program Cesar Charts and Charting in Excel 1 July 9th 09 08:22 AM
Excel program bri-bri Excel Discussion (Misc queries) 2 January 8th 09 09:33 PM
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Excel program Sue Excel Discussion (Misc queries) 2 March 11th 05 10:15 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM


All times are GMT +1. The time now is 10:41 AM.

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"