VBA Excel Functions
VBA Excel Functions
VBA Function
Abs
Array
Asc
Atn
CBool
CByte
CCur
CDate
CDbl
CDec
Choose
Chr
CInt
CLng
Cos
CreateObject
CSng
CStr
CurDir
CVar
CVDate
CVErr
Date
DateAdd
DateDif
DatePart
DateSerial
DateValue
Day
Dir
DoEvents
EOF
Error
Exp
What It Does
Returns the absolute value of a number
Returns a variant that contains an array
Converts the first character of string to its ASCII
value
Returns the arctangent of a number
Converts an expression to Boolean data type
Converts an expression to byte data type
Converts an expression to currency data type
Converts an expression to date data type
Converts an expression to double data type
Converts an expression to decimal data type
Selects and returns a value from a list of arguments
Converts an ANSI value to a character
Converts an expression to integer data type
Converts an expression to long data type
Returns the cosine of a number
Creates an OLE Automation object
Converts an expression to single data type
Converts an expression to string data type
Returns the current path
Converts an expression to variant data type
Converts an expression to date data type
Returns a user-defined error type
Returns the current system date
Returns a date with a specific date interval added to
it
Returns the diference between two dates as a time
interval
Returns an integer containing a specific part of a
date
Returns a date for a specified year, month, and day
Converts a string to date
Returns the day of the month of a date
Returns the name of a file or directory that matches
a pattern
Yields execution so the operating system can
process other events
Returns True if the end of a text file has been
reached
Returns the error message that corresponds to an
error number
Returns the base of the natural logarithms (e) raised
to a power
-1-
GetAttr
GetObject
GetSetting
Hex
Hour
IIf
Input
InputBox
InStr
InStrRev
Int
IsArray
IsDate
IsEmpty
IsError
IsMissing
IsNull
IsNumeric
IsObject
-2-
-3-
Tab
Tan
Time
Timer
TimeSerial
TimeValue
Trim
TypeName
UBound
UCase
Val
VarType
Weekday
Weekday Name
Year
comparison
Returns a string variant converted as specified
Returns a repeating character or string
Returns the characters of a string in reverse order
Evaluates a list of expressions and returns a value
associated with the first expression in the list that is
True
Positions output in an output stream
Returns the tangent of a number
Returns the current system time
Returns the number of seconds since midnight
Returns the time for a specified hour, minute, and
second
Converts a string to a time serial number
Returns a string without leading and spaces and
replaces multiple spaces with a single space
Returns a string that describes the data type of a
variable
Returns the upper bound of an array
Converts a string to uppercase
Returns the numbers contained in a string
Returns a value indicating the subtype of a variable
Returns a number representing a day of the week
Returns a string indicating the specified weekday
Returns the year of a date
-4-