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 ClassModule Statement

Specifies that the module is a class module that contains members, properties, procedures and functions.

Instrução Option VBASupport

Especifica que o LibreOffice Basic terá suporte a algumas instruções, funções e objetos VBA.

Enum Statement [VBA]

Define enumerations or non UNO constant groups. An enumeration is a value list that facilitates programming and eases code logic review.

Funções de texto

AscW Function [VBA]

Devolve o valor Unicode do primeiro carácter de um expressão de cadeia.

ChrW Function [VBA]

Devolve o carácter Unicode correspondente ao código de carácter especificado.

Função InStrRev [VBA]

Devolve a posição de uma cadeia dentro de outra cadeia, com início no lado direito da mesma.

Função StrReverse [VBA]

Devolve a cadeia de caracteres em ordem inversa.

StrConv Function

Convert a string as specified by a conversion type.

Funções financeiras

Função DDB [VBA]

Obtém a depreciação de um ativo para um período especificado usando o método aritmético em declínio.

Função FV [VBA]

Devolve o valor futuro de um investimento com base em pagamentos constantes e periódicos, e uma taxa de juros constante (Valor futuro).

IPmt Function [VBA]

Calcula a amortização periódica de um investimento com pagamentos regulares e uma taxa de juros constante.

Função IRR [VBA]

Calcula a taxa interna de retorno de um investimento.

Função MIRR [VBA]

Calcula a taxa interna de retorno modificada para uma série de investimentos.

NPer Function [VBA]

Calcula o número de períodos de um empréstimo ou investimento.

NPV Function [VBA]

Calcula o valor atual líquido de um investimento, baseado na taxa de desconto fornecida, e com uma série de depósitos e levantamentos.

Pmt Function [VBA]

Calcula os pagamentos constantes periódicos de um empréstimo ou investimento.

PPmt Function [VBA]

Devolve para um determinado período o pagamento sobre o principal para um investimento com base em pagamentos constantes e periódicos, e uma taxa de juros constante.

PV Function [VBA]

Devolve o Valor Presente de um investimento resultante de uma série de pagamentos regulares.

Rate Function [VBA]

Devolve a taxa de juros de um empréstimo ou investimento.

SLN Function [VBA]

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

SYD Function [VBA]

Returns the arithmetic-declining depreciation rate.

Funções de data e hora

FormatDateTime Function [VBA]

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

MonthName Function [VBA]

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

WeekdayName Function [VBA]

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

Funções de E/S

Input Function [VBA]

Returns the open stream of an Input or Binary file (String).

Funções matemáticas

Round Function [VBA]

Rounds a numeric value to a specified number of decimal digits.

FormatNumber [VBA]

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

FormatPercent [VBA]

Returns a string with a number formatting applied to a numeric expression. A percent sign is appended to the returned string.

Partition Function [VBA]

Devolve uma cadeia de caracteres indicando onde ocorre um número dentro de uma série de intervalos calculados.

Object Properties and Methods

Err Object [VBA]

Use VBA Err object to raise or handle runtime errors.

Necessitamos da sua ajuda!