Option VBASupport Statement

Megadja, hogy a LibreOffice Basic támogat-e a néhány VBA utasítást, függvényt vagy objektumot.

warning

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


note

A VBA támogatása nem teljeskörű, de lefedi a gyakori használati minták nagy részét.


warning

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


Szintaxis:

Option VBASupport {1|0}

Paraméterek:

1: VBA támogatás engedélyezése a LibreOffice programban

0: VBA támogatás letiltása

Példa:


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

Támogasson minket!