Академический Документы
Профессиональный Документы
Культура Документы
Contact Us
(https://www.automateexcel.com/contact/)
Search
IN THIS ARTICLE
VBA CHEAT SHEETS
SHEETS
CELLS & RANGES
ROWS
COLUMNS
WORKBOOKS
SETTINGS
ERRORS
FILES
ARRAYS
COLLECTIONS
DICTIONARIES
(/vba-code-generator)
AutoMacro: VBA Add-in with Hundreds of Ready-To-Use VBA Code Examples & much more!
https://www.automateexcel.com/vba/cheatsheets/ 1/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Learn More!
Contact Us
(https://www.automateexcel.com/contact/)
VBA
Search
Cheat Sheets
Reference this page for lists of all common VBA Commands & Syntax. You will find many basic commands (ex.
insert a sheet) and some advanced syntax (ex. working with arrays).
Tips:
Sheets
Description VBA Code
https://www.automateexcel.com/vba/cheatsheets/ 2/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Return to Top
Delete Range(“A1:B3”).Delete
Range(“A1:B3”).Delete shift:=xlShiftToLeft
Clear Range(“A1:A3”).Clear
Range(“A1:A3”).ClearContents
Range(“A1:A3”).ClearFormat
Count Range(“A1:A3”).Count
Merge/UnMerge Range(“A1:A3”).Merge
Range(“A1:A3”).UnMerge
Activate Rows(1).Activate
Rows(“1:1”).Activate
Range(“a1”).EntireRow.Activate
Delete Range(“A1”).EntireRow.Delete
Count Range(“A1”).Rows.Count
Insert Range(“A1”).EntireRow.Insert
Insert Range(“1:1”).Copy
Range(“5:5”).Insert
Return to Top
Columns
Description VBA Code
Activate Columns(1).Activate
Columns(“a:a”).Activate
Range(“a1”).EntireColumn.Activate
Delete Range(“A1”).EntireColumn.Delete
Count Range(“A1”).Columns.Count
Insert Range(“A1”).EntireColumn.Insert
Insert Range(“A:A”).Copy
Range(“E:E”).Insert
https://www.automateexcel.com/vba/cheatsheets/ 4/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Return to Top
Workbooks Contact Us
(https://www.automateexcel.com/contact/)
Description VBA Code
Add Workbooks.Add
Open Workbooks.Open(“C:\example.xlsm”)
Save Workbooks(“Book1”).Save
ForEach wb In Workbooks
MsgBox wb.Name
Next wb
Return to Top
Settings
https://www.automateexcel.com/vba/cheatsheets/ 5/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
https://www.automateexcel.com/vba/cheatsheets/ 6/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Zoom ActiveWindow.Zoom = 80
Contact Us
Return to Top
(https://www.automateexcel.com/contact/)
Errors Search
Return to Top
Files
Description VBA Code
Return to Top
https://www.automateexcel.com/vba/cheatsheets/ 7/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Arrays
Description VBA Code
Contact Us
Create (https://www.automateexcel.com/contact/)
Dim arr(1 To 3) As Variant
arr(1) = “one”
Search
arr(2) = “two”
arr(3) = “three”
Return to Top
Collections
Description VBA Code
https://www.automateexcel.com/vba/cheatsheets/ 8/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Return to Top
Dictionaries
Description VBA Code
https://www.automateexcel.com/vba/cheatsheets/ 9/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Return to Top
VBAContact
Code Us
Examples Add-in
(https://www.automateexcel.com/contact/)
Easily access all of the code examples found on our site. Simply navigate to the menu, click, and
Search
the code will be inserted directly into your module. .xlam add-in (no installation required!)
Free (https://www.automateexcel.com/vba-add-in-
Download download/)
https://www.automateexcel.com/vba/cheatsheets/ 10/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Contact Us
(https://www.automateexcel.com/contact/)
Search
(/vba-code-
generator/)
(https://www.automateexcel.com/automacro/reviews)
https://www.automateexcel.com/vba/cheatsheets/ 11/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Advertisements
Contact Us
(https://www.automateexcel.com/contact/)
Search
"At Automate Excel we offer a range of free resources, software, training, and consulting to help you Excel at Excel.
Contact me (https://www.automateexcel.com/excel/contact/) to learn more."
VBA CHEATSHEETS
(HTTPS://WWW.AUTOMATEEXCEL.COM/VBA
/CHEATSHEETS/)
START HERE
(HTTPS://WWW.AUTOMATEEXCEL.COM/TUTORIALS-
PRACTICE-TESTS/)
SHORTCUT COACH
(HTTPS://WWW.AUTOMATEEXCEL.COM/SHO
RTCUTCOACH/)
NEWSLETTER SIGNUP
First Name
SUBMIT
https://www.automateexcel.com/vba/cheatsheets/ 13/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Contact Us
(https://www.automateexcel.com/contact/)
Search
(/learn-vba-tutorial/)
(/vba-code-generator/)
(https://www.automateexcel.com/automacro/reviews)
https://www.automateexcel.com/vba/cheatsheets/ 14/15
06/01/2020 VBA Cheat Sheets - Commands & Syntax Lists - Automate Excel
Contact Us
(https://www.automateexcel.com/contact/)
Search
https://www.automateexcel.com/vba/cheatsheets/ 15/15