PC Review


Reply
Thread Tools Rate Thread

Automating An Excel 2007 Application using VB

 
 
=?Utf-8?B?QnJhZCBXeWxpZQ==?=
Guest
Posts: n/a
 
      27th Jan 2007
I seem to having a problem getting the VB code to recognize the statements
that declare the automation object type and creating an instance of it after
I have added the refernce to it from the object browser. Is there a sample
program available or some code that will illustrate what is wrong with this
code for Excel 2007?

Dim xlApp As Microsoft.Office.Interop.Excel.Application

xlApp = CType(CreateObject("Excel.Application"),
Microsoft.Office.Interop.Excel.Application)
--
Brad Wylie
 
Reply With Quote
 
 
 
 
ivanmoala@xtra.co.nz
Guest
Posts: n/a
 
      27th Jan 2007
Have a look here @ Mikes tutorial

http://www.xtremevbtalk.com/showthread.php?t=160433

On Jan 27, 1:16 pm, Brad Wylie <hbwy...@yahoo.com.modified> wrote:
> I seem to having a problem getting the VB code to recognize the statements
> that declare the automation object type and creating an instance of it after
> I have added the refernce to it from the object browser. Is there a sample
> program available or some code that will illustrate what is wrong with this
> code for Excel 2007?
>
> Dim xlApp As Microsoft.Office.Interop.Excel.Application
>
> xlApp = CType(CreateObject("Excel.Application"),
> Microsoft.Office.Interop.Excel.Application)
> --
> Brad Wylie


 
Reply With Quote
 
=?Utf-8?B?QnJhZCBXeWxpZQ==?=
Guest
Posts: n/a
 
      27th Jan 2007
Excellent article and sloves the problem - thanks
--
Brad Wylie


"(E-Mail Removed)" wrote:

> Have a look here @ Mikes tutorial
>
> http://www.xtremevbtalk.com/showthread.php?t=160433
>
> On Jan 27, 1:16 pm, Brad Wylie <hbwy...@yahoo.com.modified> wrote:
> > I seem to having a problem getting the VB code to recognize the statements
> > that declare the automation object type and creating an instance of it after
> > I have added the refernce to it from the object browser. Is there a sample
> > program available or some code that will illustrate what is wrong with this
> > code for Excel 2007?
> >
> > Dim xlApp As Microsoft.Office.Interop.Excel.Application
> >
> > xlApp = CType(CreateObject("Excel.Application"),
> > Microsoft.Office.Interop.Excel.Application)
> > --
> > Brad Wylie

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Excel Files in Excel 2007 only opens application, not the Eipee73 Microsoft Excel Crashes 9 22nd Apr 2010 03:27 PM
How to open application using Excel 2003 instead of Excel 2007? Jason Soh Microsoft Excel Misc 2 10th Dec 2008 12:24 PM
Automating excel from MAccess 2007 Ingman Microsoft Access VBA Modules 8 25th Sep 2008 09:58 AM
Automating Excel and then quit application problem meldrum_scotland Microsoft VB .NET 0 25th Apr 2008 05:50 PM
Automating my application Steve Barnett Microsoft C# .NET 6 26th Jul 2006 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.