Excel and HMG (or another application)

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Excel and HMG (or another application)

Post by mol »

Hi guys!

I have computer with 2 version of ms office istalled (2003 and 2007).
If i use:

Code: Select all

oExcel := CreateObject( "Excel.Application")
I will open Excel 2007.
How to force opening Excel 2003?

Has anybody got any idea how to do it?
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Excel and HMG (or another application)

Post by mol »

I found solution!!!
I wanna put it to help somebody, which will try to work with multiple office versions on one computer.

You can read about it on MS pages:
http://support.microsoft.com/kb/292491
As you can read on these pages, always latest installed application is called via OLE.

But, simply, you can call

Microsoft excel 2002 (XP)

Code: Select all

oExcel := CreateObject( "Excel.Application.10")
Microsoft excel 2003

Code: Select all

oExcel := CreateObject( "Excel.Application.11")
Microsoft excel 2007

Code: Select all

oExcel := CreateObject( "Excel.Application.12")
I will test it today on my second computer at home.
If something will be bad, I will write about it.

Best regards, Marek
Last edited by mol on Wed May 27, 2009 5:30 pm, edited 1 time in total.
User avatar
swapan
Posts: 242
Joined: Mon Mar 16, 2009 4:23 am
Location: Kolkata, India
Contact:

Re: Excel and HMG (or another application)

Post by swapan »

Thanks Mol!
Thanks & Regards,
Swapan Das

http://www.swapandas.com/
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Excel and HMG (or another application)

Post by luisvasquezcl »

Thanks Mol.
Regards,
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Excel and HMG (or another application)

Post by Vanguarda »

Hi all,

Thanks Mol, great post.



regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Excel and HMG (or another application)

Post by salamandra »

:) Hi Mol,
mol wrote:I found solution!!!
I wanna put it to help somebody, which will try to work with multiple office versions on one computer.

You can read about it on MS pages:
http://support.microsoft.com/kb/292491
As you can reead on these pages, always latest installed application is running.


But, simply, you can call

Microsoft excel 2002 (XP)

Code: Select all

oExcel := CreateObject( "Excel.Application.10")
Microsoft excel 2003

Code: Select all

oExcel := CreateObject( "Excel.Application.11")
Microsoft excel 2007

Code: Select all

oExcel := CreateObject( "Excel.Application.12")
I will test it today on my second computer at home.
If something will be bad, I will write about it.

Best regards, Marek
This will be very, very, very useful for me

Regards,

Salamandra
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Excel and HMG (or another application)

Post by mol »

I've tested my argument with Excel 2002 (XP) and Excel 2007.
It works as I expected!
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Excel and HMG (or another application)

Post by Rathinagiri »

Oh! Nice. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply