Common VBA Functions

VBA helps you dig into your Windows programming. The VBA functions in the following list are ones used most often or that have proven to be quite helpful:











































Use This FunctionTo Do This
Asc, AscB, or AscWConvert a character into its ASCII, DBCS, or Unicode numeric
value
Chr, ChrB, or ChrWConvert a number into its ASCII, DBCS, or Unicode
character
CStrConvert any expression, including any supported data type, into
a string
CVErrCreate a user-defined error number for your program
FormatChange an enumeration or other expression into formatted
text
InputBoxGet a single input from the program user
MsgBoxDisplay a short message box onscreen
Str, Format, or CStrConvert a number into a string
Val, CByte, CCur, CDbl, CDec, CInt, CLng, or CSngConvert a string into a number








dummies

Source:http://www.dummies.com/how-to/content/common-vba-functions.html

No comments:

Post a Comment