Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit
Twitter LinkedIn Facebook Email

Functions (Visual Basic for Applications)

  • Article
  • 09/13/2021
  • 2 minutes to read

In this article

Conversion functions

  • Asc
  • Chr
  • CVErr
  • Format
  • Hex
  • Oct
  • Str
  • Val

Math functions

  • Abs
  • Atn
  • Cos
  • Derived math
  • Exp
  • Int, Fix
  • Log
  • Rnd
  • Sgn
  • Sin
  • Sqr
  • Tan

Type conversion functions

  • Type conversion functions

Other functions

  • Array
  • CallByName
  • Choose
  • Command
  • CreateObject
  • CurDir
  • Date
  • DateAdd
  • DateDiff
  • DatePart
  • DateSerial
  • DateValue
  • Day
  • DDB
  • Dir
  • DoEvents
  • Environ
  • EOF
  • Error
  • FileAttr
  • FileDateTime
  • FileLen
  • Filter
  • FormatCurrency
  • FormatDateTime
  • FormatNumber
  • FormatPercent
  • FreeFile
  • FV
  • GetAllSettings
  • GetAttr
  • GetObject
  • GetSetting
  • Hour
  • IIf
  • IMEStatus
  • Input
  • InputBox
  • InStr
  • InStrRev
  • IPmt
  • IRR
  • IsArray
  • IsDate
  • IsEmpty
  • IsError
  • IsMissing
  • IsNull
  • IsNumeric
  • IsObject
  • Join
  • LBound
  • LCase
  • Left
  • Len
  • Loc
  • LOF
  • LTrim, RTrim, and Trim
  • MacID
  • MacScript
  • Mid
  • Minute
  • MIRR
  • Month
  • MonthName
  • MsgBox
  • Now
  • NPer
  • NPV
  • Partition
  • Pmt
  • PPmt
  • PV
  • QBColor
  • Rate
  • Replace
  • RGB
  • Right
  • Round
  • Second
  • Seek
  • Shell
  • SLN
  • Space
  • Spc
  • Split
  • StrComp
  • StrConv
  • String
  • StrReverse
  • Switch
  • SYD
  • Tab
  • Time
  • Timer
  • TimeSerial
  • TimeValue
  • TypeName
  • UBound
  • UCase
  • VarType
  • Weekday
  • WeekdayName
  • Year

See also

  • Data types
  • Keyword contexts
  • Keywords by task

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.


Additional resources

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023

Additional resources

In this article

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023