Довідка LibreOfficeDev 25.8
Запускає іншу програму і, за необхідності, визначає відповідний стиль вікна.
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 | Meaning | 
|---|---|
| 0 | Фокус на прихованому вікні програми. | 
| 1 | Фокус на вікні програми стандартного розміру. Not implemented in LibreOfficeDev. | 
| 2 | Фокус на згорнутому вікні програми. | 
| 3 | Фокус на розгорнутому вікні програми. | 
| 4 | Вікно програми стандартного розміру без фокусування. Not implemented in LibreOfficeDev. | 
| 6 | Згорнуте вікно програми, фокус залишається на активному вікні. Not implemented in LibreOfficeDev. | 
| 10 | Повний екран. | 
Windowstyle 3 and 10 are equivalent in Windows systems.
String that specifies additional arguments passed to the program.
Якщо для даного значення задано true, то команда Shell і всі завдання LibreOfficeDev очікують завершення процесу shell. Якщо для цього значення вказано false, то функція Shell повертає безпосередньо. Типовим значенням є false.
Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub