Download presentation
Presentation is loading. Please wait.
Published byTobias Black Modified over 5 years ago
1
Excel VBA Programming © Copyright 2011, TechMentors All rights reserved
2
Lessons Fundamentals Getting Started
Working with Procedures and Functions Understanding Objects Using Expressions, Variables, and Intrinsic Functions © Copyright 2011, TechMentors All rights reserved
3
Lessons (continued) Controlling Program Execution
Working with Forms and Controls Working with PivotTable Objects Debugging Code Handling Errors © Copyright 2011, TechMentors All rights reserved
4
Fundamentals © Copyright 2011, TechMentors All rights reserved
5
VBA is a language English Definition VBA Sentence A bunch of words
Statement Paragraph A bunch of sentences Procedure Chapter A bunch of paragraphs Module Book A bunch of chapters Project © Copyright 2011, TechMentors All rights reserved
6
Object Oriented Programming
English Definition VBA Noun A thing Object Adjective Describes the thing Property Verb An action the thing can do Method Adverb Describes the action Argument © Copyright 2011, TechMentors All rights reserved
7
Object © Copyright 2011, TechMentors All rights reserved
8
Collection © Copyright 2011, TechMentors All rights reserved
9
VBA Syntax Object.Property = Value Object.Method
ActiveCell.Value = "First Name" Object.Method Range("A1").Select Object.Method Argument:= Value ActiveWorkbook.Close SaveChanges:= False © Copyright 2011, TechMentors All rights reserved
10
Use White Space – Indent your code!
© Copyright 2011, TechMentors All rights reserved
11
VBE Colors Keywords Blue Code Black Comments Green Errors Red
© Copyright 2011, TechMentors All rights reserved
12
5 Steps for creating a macro
Know exactly what you want Know how to do it without a macro Record the macro Test the macro and clean up code as needed Share with someone else (let them test it) © Copyright 2011, TechMentors All rights reserved
13
Displaying the Developer Tab
Choose File, Options, Customize Ribbon. Check the option for the Developer tab. Click OK. © Copyright 2011, TechMentors All rights reserved
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.