Using a comand button to open an external software?
Solved/Closed
alfa_eng
Posts
5
Registration date
Thursday 17 September 2015
Status
Member
Last seen
30 September 2015
-
17 Sep 2015 à 05:30
alfa_eng Posts 5 Registration date Thursday 17 September 2015 Status Member Last seen 30 September 2015 - 22 Sep 2015 à 04:41
alfa_eng Posts 5 Registration date Thursday 17 September 2015 Status Member Last seen 30 September 2015 - 22 Sep 2015 à 04:41
Related:
- Using a comand button to open an external software?
- Blackberry desktop software - Download - File management
- Checksoft software - Download - Finance
- At button - Guide
- Pluraleyes software - Download - Video editing
- Chip genius software - Download - Diagnosis and monitoring
1 response
Ambucias
Posts
47312
Registration date
Monday 1 February 2010
Status
Moderator
Last seen
28 March 2026
11,166
17 Sep 2015 à 05:53
17 Sep 2015 à 05:53
Hello
Perhaps that this "How-to" will help you:
https://ccm.net/apps-sites/software/3649-adding-a-vba-command-button/
Perhaps that this "How-to" will help you:
https://ccm.net/apps-sites/software/3649-adding-a-vba-command-button/
17 Sep 2015 à 08:08
Thank you for your help.
17 Sep 2015 à 16:25
18 Sep 2015 à 21:11
In this example it will open Notepad.
You will need to supply the full path of the program you want to open in the Path string. e..g "c:\myprogram\exec\Profis Anchor from Hilti.exe" or whatever the software is you are trying to open.
Sub OpenExternalProgram() Dim x As Variant Dim Path As String ' Set the Path variable equal to the path of your program's installation Path = "notepad" x = Shell(Path, vbNormalFocus) End Sub21 Sep 2015 à 05:32
I tried the code above and I've 2 doubts:
1) when you say I need to suply the full path are you saying that I need to put:
path="c:\myprogram\exec\Profis Anchor from Hilti.exe" e.g
2)and when I run the macro it stops when I say that x="shell(path, vbNomralFocus)
What can I am doing wrong?
Thanks for your help.
21 Sep 2015 à 10:42
C:\Program Files\Microsoft Office\Office14\WINDORD.EXE
Setting the path with the above value will point to Word (on my PC, yours may be different)
I don't know where the software you are trying to open is installed or what the executable is called so I cannot give you the exact value.
2. This is most likely happening (a guess since you don't give an error) that the path setting is incorrect.