We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Excel VBA Cheat Sheet
by Akira via cheatography.com/18933/cs/2033/
Data types Main objects
Type Description Application Excel app
Variant Any data type ThisWorkbo Xls file containing the current
Boolean True / False ok macro
Byte, Integer, Integers (Signed ) ActiveWorkb Xls file with focus
Long ook
Worksheets Collection of sheets in the
Single, Floating point Double Workbook
String String ActiveSheet Sheet with focus
Object Any object reference Selection Anything selected (often a
range of cells) Date Date & Hour
Array(10, 20, Array of 3 integers
30)
Set dict = Dictionnary (must reference
New Microsoft Scripting Runtime) Dictionary
Control structures
Conditionnal Loop (While & Until)
Do While|Until condition ... Loop For Loop For counter = start To end [Step s] ... Next counter ForEach Loop For Each element In collection ... Next element If-Then-Else If condition Then ... Else: ... End If Operators = (equals), <> (differs), <, >, <=, >=, And, Or, Not
By Akira Not published yet. Sponsored by Readability-Score.com
cheatography.com/akira/ Last updated 13th May, 2014. Measure your website readability! Page 1 of 1. https://readability-score.com