exe file won't run from within excel

freudje

New Member
Joined
Oct 20, 2014
Messages
3
Hi,

I have a workbook in which users are supposed to give in a lot of data, which then can be exported as a .csv and turned into a nice-looking pdf report including graphs etc. The pdf is generated via a .exe file that a colleague of mine programmed using Processing. When I open this exe file by double clicking on it on my computer, everything is working fine: he asks to locate the csv, and then produces the pdf.

However, when I try to open this exe file from within excel using a macro, nothing happens at all. I tried different types of code, among them

Call Shell("C:\address\USSGraph39.exe", vbNormalFocus)
RetVal = Shell("C:\address\USSGraph39.exe", 1)
Shell ("C:\address\USSGraph39.exe")

But in each case, nothing seems to happen (not even an error message). The same is also happening when I write the address of the file in the command bar of Windows Explorer - nothing is executed.
I think the problem lies within the exe file, but I don't know what should be changed there / what I have to tell my colleague to change. However, maybe there is also a way to open the file via excel with another command?

Thanks a lot for any comments!

(edit: I'm using Excel 2010 on a Windows 7 computer)
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
excel can PDF on its own, it dosen't need an external exe, just file SAVE AS
 

freudje

New Member
Joined
Oct 20, 2014
Messages
3
It's not just a print from the sheet, it's a whole report including graphs that Excel is not able to generate...
 

Watch MrExcel Video

Forum statistics

Threads
1,130,026
Messages
5,639,616
Members
417,101
Latest member
amoverton2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top