I use this to open Windows calculator but how can I modifiy it to NOT open another instance if calc.exe is already open?
Sub StartCalculator()
Dim Program As String
Dim TaskID As Double
On Error Resume Next
Program = "calc.exe"
TaskID = Shell(Program1)
If Err <> 0 Then
MsgBox "Can't start " & Program
End If
End Sub
Sub StartCalculator()
Dim Program As String
Dim TaskID As Double
On Error Resume Next
Program = "calc.exe"
TaskID = Shell(Program1)
If Err <> 0 Then
MsgBox "Can't start " & Program
End If
End Sub