LibreOffice 25.2 ヘルプ
他のアプリケーションを起動し、必要であれば表示ウィンドウのスタイル設定なども行います。
Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])
Name of the program that you want to start, optionally with complete path and/or arguments.
Optional integer expression that specifies the style of the window that the program is executed in.
Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.
The following values are possible:
| Windowstyle | 意味 | 
|---|---|
| 0 | プログラムウィンドウを非表示にして、フォーカスを移動します。 | 
| 1 | プログラムウィンドウを標準サイズにして、フォーカスを移動します。 Not implemented in LibreOffice. | 
| 2 | プログラムウィンドウを最小化 (アイコン化) して、フォーカスを移動します。 | 
| 3 | プログラムウィンドウを最大表示にして、フォーカスを移動します。 | 
| 4 | プログラムウィンドウを標準サイズにしますが、フォーカスは移動しません。 Not implemented in LibreOffice. | 
| 6 | プログラムウィンドウを最小化しますが、フォーカスはアクティブウィンドウにとどめておきます。 Not implemented in LibreOffice. | 
| 10 | 全画面表示にします。 | 
Windowstyle 3 and 10 are equivalent in Windows systems.
String that specifies additional arguments passed to the program.
この値に True を指定すると、シェルプロセスの実行が完了するまで、Shell コマンドを含めたすべての LibreOffice のタスクが待機します。この値に False を指定すると、実行直後にシェル制御が戻ります。デフォルト値は False です。
Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub