How to force to open an file in specific version of EXCEL

Aug 14, 2014 at 5:29 PM
Hi all

I have a PC with Windows Vista Pro, Visual Studio 2008, with both Office 2007 and 2003 installed.
I have defined excel 2007 to open by default xls, xlsx and xlsm files.


Im testing net office to open excel.xlsm files and execute its macros.

I have a excel.xlsm 2007 file with a simple macro which display just a message.


When execute my app, it opens the xlsm file and display message without problem.

The problem is that file was open in excel 2003.


How can i force to open it in excel 2007?


Thanks in advance.