Trideep Patel
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 ?
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 ?
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
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?
ASKER
from start menu -->Run
in that dialog box write "Excel"
it will open 2003
in that dialog box write "Excel"
it will open 2003
Do you have some office folders in your "PATH" environment variable?
Try running:
"C:\program Files\Microsoft office\office12\excel.exe" /regserver
from the run box and see if that helps.
"C:\program Files\Microsoft office\office12\excel.exe"
from the run box and see if that helps.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
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"