Exclusive VBA functions

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.

文本函数

AscW 函数 [VBA]

返回某个字符串表达式中第一个字符对应的 Unicode 值。

ChrW 函数 [VBA]

返回指定字符代码对应的 Unicode 字符。

InStrRev 函数 [VBA]

返回字符串在另一个字符串中的位置,从字符串的右侧开始。

StrReverse 函数 [VBA]

将字符串中的字符顺序反转,然后返回反转后的字符串。

财务函数

DDB 函数 [VBA]

返回指定期间内资产的折旧,使用算术递减方法。

FV 函数 [VBA]

返回基于定期、不变付款和不变利率的投资的未来价值 (未来价值)。

IPmt 函数 [VBA]

计算定期付款和固定利率的投资的定期摊销。

IRR 函数 [VBA]

Calculates the internal rate of return for an investment.

MIRR 函数 [VBA]

Calculates the modified internal rate of return of a series of investments.

NPer 函数 [VBA]

Calculates the number of periods for a loan or investment.

NPV 函数 [VBA]

Calculates the Net Present Value of an investment, based on a supplied discount rate, and a series of deposits and withdrawals.

Pmt 函数 [VBA]

Calculates the constant periodic payments for a loan or investment.

PPmt 函数 [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 函数 [VBA]

Returns the Present Value of an investment resulting from a series of regular payments.

Rate 函数 [VBA]

Returns the interest rate of a loan or an investment.

SLN 函数 [VBA]

Returns the straight-line depreciation of an asset for one period. The amount of the depreciation is constant during the depreciation period.

SYD 函数 [VBA]

Returns the arithmetic-declining depreciation rate.

日期与时间函数

FormatDateTime 函数 [VBA]

Applies a date and/or time format to a date expression and returns the result as a string.

MonthName 函数 [VBA]

The MonthName function returns the localized month name of a specified month number.

WeekdayName 函数 [VBA]

The WeekdayName function returns the weekday name of a specified day of the week.

I/O 函数

Input 函数 [VBA]

返回输入或二进制文件 (字符串) 的打开流。

数学函数

Round 函数 [VBA]

The Round function returns a number rounded to a specified number of digits.

FormatNumber 函数 [VBA]

Returns a string with a number formatting applied to a numeric expression.

对象函数