PC Review


Reply
Thread Tools Rate Thread

Choosing the Version of Excel when opening an instance

 
 
Dave
Guest
Posts: n/a
 
      30th Jan 2007
I'm using vba with ms project and excel, pulling the tasks from project to
excel. I have excel 2007 and 2003 installed on my computer. By default
when I use
Set xlApp = New Excel.Application
xlApp.Visible = True
AppActivate "Microsoft Excel"

The 2007 version is used. I would like to use the 2003 version. Any help
is appreciated.

Cheers


 
Reply With Quote
 
 
 
 
Juan Pablo González
Guest
Posts: n/a
 
      30th Jan 2007
Try using

Set xlApp = CreateObject("Excel.Application.11")

Regards,

Juan Pablo González

"Dave" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using vba with ms project and excel, pulling the tasks from project to
> excel. I have excel 2007 and 2003 installed on my computer. By default
> when I use
> Set xlApp = New Excel.Application
> xlApp.Visible = True
> AppActivate "Microsoft Excel"
>
> The 2007 version is used. I would like to use the 2003 version. Any help
> is appreciated.
>
> Cheers
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      30th Jan 2007
That still opens up the 07 version...
"Juan Pablo González" <(E-Mail Removed)> wrote in message
news:%23uRl$(E-Mail Removed)...
> Try using
>
> Set xlApp = CreateObject("Excel.Application.11")
>
> Regards,
>
> Juan Pablo González
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I'm using vba with ms project and excel, pulling the tasks from project
>> to excel. I have excel 2007 and 2003 installed on my computer. By
>> default when I use
>> Set xlApp = New Excel.Application
>> xlApp.Visible = True
>> AppActivate "Microsoft Excel"
>>
>> The 2007 version is used. I would like to use the 2003 version. Any
>> help is appreciated.
>>
>> Cheers
>>

>
>



 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      30th Jan 2007
You might try re-registering Excel 2003. From Start->Run enter:

<Full path to Excel 2003>\Excel.exe /regserver

--
Jim
"Dave" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| I'm using vba with ms project and excel, pulling the tasks from project to
| excel. I have excel 2007 and 2003 installed on my computer. By default
| when I use
| Set xlApp = New Excel.Application
| xlApp.Visible = True
| AppActivate "Microsoft Excel"
|
| The 2007 version is used. I would like to use the 2003 version. Any help
| is appreciated.
|
| Cheers
|
|


 
Reply With Quote
 
Juan Pablo González
Guest
Posts: n/a
 
      30th Jan 2007
Weird, I don't have a machine with both of them installed, but on the
machine with 2007, that line creates a run time error, only when I change it
to Excel.Application.12 it works.

So, try what Jim Rech said and see if that helps.

Regards,

Juan Pablo González

"Dave" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> That still opens up the 07 version...
> "Juan Pablo González" <(E-Mail Removed)> wrote in message
> news:%23uRl$(E-Mail Removed)...
>> Try using
>>
>> Set xlApp = CreateObject("Excel.Application.11")
>>
>> Regards,
>>
>> Juan Pablo González
>>
>> "Dave" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> I'm using vba with ms project and excel, pulling the tasks from project
>>> to excel. I have excel 2007 and 2003 installed on my computer. By
>>> default when I use
>>> Set xlApp = New Excel.Application
>>> xlApp.Visible = True
>>> AppActivate "Microsoft Excel"
>>>
>>> The 2007 version is used. I would like to use the 2003 version. Any
>>> help is appreciated.
>>>
>>> Cheers
>>>

>>
>>

>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      30th Jan 2007
Hmmm...in my references it only shows the office 12 objects, not excel 11.
I did re-register and it still does not show up....

"Jim Rech" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You might try re-registering Excel 2003. From Start->Run enter:
>
> <Full path to Excel 2003>\Excel.exe /regserver
>
> --
> Jim
> "Dave" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> | I'm using vba with ms project and excel, pulling the tasks from project
> to
> | excel. I have excel 2007 and 2003 installed on my computer. By default
> | when I use
> | Set xlApp = New Excel.Application
> | xlApp.Visible = True
> | AppActivate "Microsoft Excel"
> |
> | The 2007 version is used. I would like to use the 2003 version. Any
> help
> | is appreciated.
> |
> | Cheers
> |
> |
>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      30th Jan 2007
Ok, this is what I had to do for it to work.

From Project, I had to disable the current reference I had to Office 12,
browse to the
C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSO.dll to add this
reference. Go back and add the Excel 12 reference, make sure that the
office 11 is before the excel 12 and it now works...

Thanks

"Dave" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using vba with ms project and excel, pulling the tasks from project to
> excel. I have excel 2007 and 2003 installed on my computer. By default
> when I use
> Set xlApp = New Excel.Application
> xlApp.Visible = True
> AppActivate "Microsoft Excel"
>
> The 2007 version is used. I would like to use the 2003 version. Any help
> is appreciated.
>
> Cheers
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      31st Jan 2007
the number on the end makes no difference - the last registered version is
started.

There is a KB article on this.

--
Regards,
Tom Ogilvy


"Juan Pablo González" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Weird, I don't have a machine with both of them installed, but on the
> machine with 2007, that line creates a run time error, only when I change
> it to Excel.Application.12 it works.
>
> So, try what Jim Rech said and see if that helps.
>
> Regards,
>
> Juan Pablo González
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> That still opens up the 07 version...
>> "Juan Pablo González" <(E-Mail Removed)> wrote in message
>> news:%23uRl$(E-Mail Removed)...
>>> Try using
>>>
>>> Set xlApp = CreateObject("Excel.Application.11")
>>>
>>> Regards,
>>>
>>> Juan Pablo González
>>>
>>> "Dave" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> I'm using vba with ms project and excel, pulling the tasks from project
>>>> to excel. I have excel 2007 and 2003 installed on my computer. By
>>>> default when I use
>>>> Set xlApp = New Excel.Application
>>>> xlApp.Visible = True
>>>> AppActivate "Microsoft Excel"
>>>>
>>>> The 2007 version is used. I would like to use the 2003 version. Any
>>>> help is appreciated.
>>>>
>>>> Cheers
>>>>
>>>
>>>

>>
>>

>
>



 
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
Re: Opening multiple Excel files from IE browser does not open in new instance of Excel - BUG? Robert Aldwinckle Microsoft Excel Setup 1 11th Nov 2009 05:13 PM
Opening multiple Excel files from IE browser does not open in new instance of Excel - BUG? Troy Munford Microsoft Excel Discussion 0 4th Nov 2009 04:07 PM
Choosing Excel version Floyd Shadwick Microsoft Access External Data 2 27th Jun 2008 02:31 PM
opening a new instance of Excel gb4 Microsoft Excel Setup 0 10th Apr 2008 04:48 PM
keep Excel from opening 2nd instance =?Utf-8?B?d2lkbWFu?= Microsoft Excel Misc 0 30th Apr 2006 01:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.