Exclusive VBA Functions and Statements
LibreOffice Basic adds this set of functions when VBA support is enabled.
These exclusive VBA functions are enabled when the statement Option VBASupport 1 is placed before the first macro of a LibreOffice Basic module.
VBA Statements
Option Compatible Statement
Option Compatible turns on the VBA-compatible Basic compiler mode at the module level.
Option ClassModule Statement
Specifies that the module is a class module that contains members, properties, procedures and functions.
Enum lause [VBA]
Define enumerations or non UNO constant groups. An enumeration is a value list that facilitates programming and eases code logic review.
Text functions
ChrW funktsioon [VBA]
Returns the Unicode character that corresponds to the specified character code.
InStrRev funktsioon [VBA]
Returns the position of a string within another string, starting from the right side of the string.
Rahandusfunktsioonid
DDB funktsioon [VBA]
Returns the depreciation of an asset for a specified period using the arithmetic-declining method.
FV funktsioon [VBA]
Returns the future value of an investment based on periodic, constant payments and a constant interest rate (Future Value).
IPmt funktsioon [VBA]
Calculates the periodic amortizement for an investment with regular payments and a constant interest rate.
NPV funktsioon [VBA]
Calculates the Net Present Value of an investment, based on a supplied discount rate, and a series of deposits and withdrawals.
PPmt funktsioon [VBA]
Returns for a given period the payment on the principal for an investment that is based on periodic and constant payments and a constant interest rate.
PV funktsioon [VBA]
Returns the Present Value of an investment resulting from a series of regular payments.
SLN funktsioon [VBA]
Returns the straight-line depreciation of an asset for one period. The amount of the depreciation is constant during the depreciation period.
KuupƤeva- ja ajafunktsioonid
FormatDateTime funktsioon [VBA]
Applies a date and/or time format to a date expression and returns the result as a string.
MonthName funktsioon [VBA]
The MonthName function returns the localized month name of a specified month number.
WeekdayName funktsioon [VBA]
The WeekdayName function returns the weekday name of a specified day of the week.
I/O Functions
Matemaatilised funktsioonid
FormatNumber funktsioon [VBA]
Returns a string with a number formatting applied to a numeric expression.
Partition funktsioon [VBA]
Returns a string indicating where a number occurs within a calculated series of ranges.