Opcja VBA Wsparcie instrukcji

Określa, że LibreOfficeDev Basic będzie obsługiwał niektóre instrukcje, funkcje i obiekty VBA.

Ikona notatki

Obsługa VBA nie jest kompletna, ale obejmuje dużą część typowych wzorców użycia.


Składnia:

Option VBASupport {1|0}

Parameters:

Ikona ostrzeżenia

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


1: Enable VBA support in LibreOfficeDev

0: Wyłącz obsługę VBA

Example:

Option VBASupport 1

Sub ExampleVBA

Dim sVar As Single

 sVar = Worksheets("Sheet1").Range("A1")

Print sVar

End Sub