Link to home
Start Free TrialLog in
Avatar of Trideep Patel
Trideep PatelFlag for India

asked on

Set Default Excel Instance to 2007

Hi Experts

I am having excel 2003 and 2007 installed on my pc
currently my default excel instance is 2003,
I want to change it to 2007 without reinstalling excel 2007

how can i achive it ?
Avatar of gtworek
gtworek
Flag of Poland image

It should be done for all Excel file extensions.
i.e. for XLS -
from command line: "assoc .xls"
Then if you can see the result (i.e. .xls=Excel.Sheet.8)
"ftype Excel.Sheet.8"

If it points to your Excel 2003 you can change the path to new one:
"ftype Excel.Sheet.8="C:\Program Files (x86)\Microsoft Office\Office12\EXCEL.EXE" /e"
Avatar of Trideep Patel

ASKER

i tried that
now it shows as office 12

but my problem is not solved
when i run excel from command prompt it still open excel 2003 instead of excel 2007

basically i am using interop.excel in my .net program
which create excel 2003 instance because 2003 is the default excel version
i want to change it to 2007 so from code also i may get the same
What command prompt are you using to run your excel?
from start menu -->Run

in that dialog box write "Excel"
it will open 2003
Do you have some office folders in your "PATH" environment variable?
Avatar of Rory Archibald
Try running:

"C:\program Files\Microsoft office\office12\excel.exe" /regserver
from the run box and see if that helps.
ASKER CERTIFIED SOLUTION
Avatar of seenuforall
seenuforall
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it works from run menu
but still in my vb.net code i am getting version as 11
so now i may have to move my question to different zone

Thanks