VBAの関数

VBA functions

VBA 関数
関数説明
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(stringcheck, stringmatch, [ start, [ compare ]])ある文字列の中から別の文字列を後方から検索し、最初に見つかったその文字位置を返します。
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, conversion, [ LCID ])指定されたとおりに変換した Variant (String) を返します。
String
StrReverse
Switch
SYD
Tab
Time
Timer
TimeSerial
TimeValue
TypeName
UBound
UCase
VarType
Weekday
WeekdayName
Year

VBA Math functions

数学関数
関数説明
Abs
Atn
Cos
Derived math
Exp
Int, Fix
Log
Rnd
Sgn
Sin
Sqr
Tan

VBA Conversion functions

変換関数
関数説明
Asc
Chr
CVErr
Format(Expression, [ Format ], [ FirstDayOfWeek ], [ FirstWeekOfYear ])書式指定式の指示に従って書式設定される式を含む Variant (String) を戻します。
Hex
Oct
Str
Val

VBA Type conversion functions

データ型変換関数
  
CBool(expression)
CByte(expression)
CCur(expression)
CDate(expression)
CDbl(expression)
CDec(expression)
CInt(expression)
CLng(expression)
CLngLng(expression)
CLngLng(expression) (Valid on 64-bit platforms only.)
CLngPtr(expression)
CSng(expression)
CStr(expression)
CVar(expression)