VBA Command Shell Syntax

Juergen Hoffmann 1 Reputation point
2021-09-22T16:17:01.287+00:00

Hello, I just want to open a file.
In this example the CALC, exe runs without problems,
The file, a soundtrack, cannot be found in the code at the end, why? The code has only been modified, but basically remained the same. Calc can be started but the soundtrack cannot?

Private Sub TestFeld_DblClick(Cancel As Integer)
'Testfeld
'Dim Ergebnis
'Ergebnis = Shell("C:\WINDOWS\system32\CALC.EXE", 1)
'Close
'_______________________________________________________________________
Dim Start
Start = Shell("C:\Vokabel\34blabla.vma", 1)
End Sub

I need that call, becouse i working on my own Learn DB.
Can some please help me.

Developer technologies Visual Basic for Applications
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2021-09-22T16:30:21.697+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.