Access/VBA Library

StartAppl

Start another application.

Syntax

StartAppl( path [, parameters] [, windowState] )
Parameters
Name Type Description
path String Required. Path to application to be started.
parameters String Optional.
windowState Long Optional. Values : 0 = Hidden, 1 = Normal, 6 = Minimized.
Default: 1
Code
Sub StartAppl(ByVal path As String, Optional ByVal parameters As String, Optional ByVal windowState As Long = 1)
    If Dir(path) > "" Then
        ShellExecute 0, "open", path, parameters, "", windowState
    End If
End Sub

Remarks

  • This function required the declaration of ShellExecute.

See also

  • ShellExecute