CreateObject("Excel.Application") two version of Excel installed

hobgoblinvasya

Board Regular
Joined
Jun 29, 2005
Messages
215
Hi

its me again :) I have two versions of Excel installed on my pc (2003 and 2007). How can i programmatically create separate objects for each version? is it even possible?

CreateObject("Excel.Application") returns the most recently installed/repaired version. however i need to check both of them.

any help will be highly appreciated.

cheers ! :)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Just include the version number though I cannot assure you that you will be without problems...

CreateObject("Excel.Application.11")
CreateObject("Excel.Application.12")

Have a nice day
 
Upvote 0
hi Tom,

thanks for the reply. I have tried doing that already. what happens is since 2003 and 2007 share the same clsid, only the latest excel version gets loaded. so if you have 2007 as the most recently installed and you try - CreateObject("Excel.Application.11") - and then see the version of the object, it will be version 12, not 11 :(

any other ideas?
 
Upvote 0
I don't know then. Without a unique prog id, I don't know of any way to do this.
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top