Option VBASupport Statement

Určuje, že LibreOfficeDev Basic bude podporovat některé příkazy, funkce a objekty VBA.

Ikona poznámky

Podpora VBA není úplná, ale pokrývá značnou část běžně používaných prostředků.


warning

This statement must be added before the executable program code in a module.


warning

When VBA support is enabled, LibreOfficeDev Basic function arguments and return values are the same as their VBA functions counterparts. When the support is disabled, LibreOfficeDev Basic functions may accept arguments and return values different of their VBA counterparts.


Syntaxe:

Option VBASupport {1|0}

Parametry:

1: Povolí podporu VBA v LibreOfficeDev

0: Zakáže podporu VBA

Příklad:


Option VBASupport 1
Sub ExampleVBA
    Dim sVar As Single
    sVar = Worksheets("Sheet1").Range("A1")
    Print sVar
End Sub

Vlastnosti VBA

Podpora VBA v LibreOfficeDev

CompatibilityMode() Function

CompatibilityMode() function is controlling runtime mode and affects all code executed after setting or resetting the mode.