Visual Studios 2005 - Setting Debug->Start External Program Field

rescapacctgit
rescapacctgit used Ask the Experts™
on
Hi,

I have a DLL I build 4 years ago that now need changing :(.  This DLL is called from an Excel workbook.  

I need to debug my code and many years ago I remember setting the Debug->Start External Program field to open up the workbook that calls it.  

I can't remember the syntax/path I need to supply in this field.  

Assume my spreadsheet is saved to C:\test\happy.xls and that Excel.exe is under C:\Programs Files\Office12\Excel.exe

Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Right click on the project, go to properties
Under debug select Start External Program (click on ellipse to start finding excel.exe
in command line arguments type the path of your excel document (C:\test\happy.xls)

Author

Commented:
I tried that ..... but it says I can only debug an executable.  

I vaguely remember having to do something like:  C:\Programs Files\Office12\Excel.exe
 'C;\test\happy.xls'

that doesn't work ..... either my memory fails me and I am not even close OR my syntax just has to be tweaked.

Author

Commented:
Sorry - I misread your message .... I did exactly as you suggested and it worked.  Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial