Excel VBA Cheat Sheet 2026
The 30 highest-yield Excel VBA facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
50 questions
60 min time limit
55.00% to pass
- In VBA, which method adds a new worksheet to a workbook? → Worksheets.Add()
- What does 'On Error Resume Next' do in VBA? → Allows execution to continue with the statement following the error
- How do Excel VBA professionals evaluate research quality? → By assessing methodology, sample size, peer review status, and relevance to practice
- Which error handling approach is most appropriate for production VBA code that needs to respond differently to multiple error types? → Use a GoTo handler with a Select Case block on Err.Number
- How has digital technology transformed Excel VBA practice? → It has enhanced data collection, analysis, communication, and operational efficiency
- What is the VBA constant for a newline character in a message box? → vbCrLf
- Which of the following is the default data passing method in VBA? → ByRef
- What does the Range.AutoFilter method do in VBA? → Applies or removes dropdown filter controls on a range
- Which VBA debugging feature lets you monitor a specific variable or expression and optionally pause execution when its value changes? → Watch Expressions
- What is the default lower bound for VBA arrays? → 0
- Which keyword exits a Sub procedure immediately in VBA? → Exit Sub
- What is the first step in risk assessment for Excel VBA professionals? → Identifying potential hazards and vulnerabilities in the specific context
- Which of the following formulas will produce an integer between 1 and 10, inclusive, with a probability of 10% for each integer? → INT(10*RAND())+1
- How should an Excel VBA professional respond to a compliance violation? → Report it promptly, investigate the root cause, and implement corrective actions
- Which VBA data type stores True or False values? → Boolean
- How does a Excel VBA professional communicate risks to stakeholders? → By presenting risks clearly with context, potential impacts, and recommended actions
- Which tool is commonly used for root cause analysis in Excel VBA quality management? → Fishbone (Ishikawa) diagram to identify contributing factors systematically
- What is the correct way to start a VBA subroutine? → Sub MySub()
- What is the effect of using 'On Error GoTo 0' in a VBA procedure? → Disables any currently active error handler in the procedure
- Which part of the VBA window corresponds to the code-writing area? → Module
- Why is documentation important in Excel VBA risk management? → It creates an audit trail, supports decision-making, and demonstrates due diligence
- How do you declare a dynamic array in VBA? → Dim arr() As Integer
- Which keyword is used at the end of an error handler to return execution to the main code flow? → Resume
- What role does peer review play in Excel VBA practice? → It provides quality assurance and professional development through collegial evaluation
- Which VBA debugging action executes code one line at a time, including stepping into called procedures? → Step Into
- What is the consequence of non-compliance for Excel VBA professionals? → Potential fines, license revocation, legal liability, and reputational damage
- How should Excel VBA professionals prioritize identified risks? → Based on likelihood of occurrence combined with severity of potential impact
- How do you find the last used row in column A using VBA? → Cells(Rows.Count, 1).End(xlUp).Row
- What is the purpose of the On Error GoTo statement in VBA? → Redirects execution to an error-handling label when a runtime error occurs
- What does 'Resume Next' do when placed inside a VBA error handler? → Continues execution with the statement after the one that caused the error
Turn these facts into recall: