Ms Excel/Vba Training Courses - 3: Xldatasoft - Data Analysis Experts
Ms Excel/Vba Training Courses - 3: Xldatasoft - Data Analysis Experts
www.XLDataSoft.com
###
Introduction to
Object
Work w/ Work w/
Workbook Worksheet
Disclaimer: the user assumes the entire responsibility for using of this free training material provided by XLData
and company names mentioned herein may be the trademarks of their respective owners.
Want to Learn More about Excel/VBA? Please Contact [email protected] or visit www.XLDat
ork w/
rksheet
- Introduction
VBA is an Object-Based (Not Object Oriented)
Programming Language Developed Especially for
Micorsoft Office Suite.
Containers or Collections
- A Group of Similar Objects Share Common Properties,
Methods and Events
- Such as Workbooks, Worksheets, etc.
- Worksheets is a collection of all the Worksheet objects in the
specified or active workbook.
- Worksheets(1) refers to the 1st worksheet of current active
workbook.
Objects
- Such as Worksheet, Workbook, Range, Cell, Chart, Name, etc.
- Worksheets(1) is an Object Referring to the First Sheet
- Range("A1:B15") is an Object Referring to a Range
Properties
- Properties are the Physical Characteristics of Objects and Can
be Measured or Quantified.
- Properties for Collections
- Worksheets.Count (Read Only)
- Worksheets.Visible = True (Read and Write)
- Properties for Object
- Range("A1:B15").Rows.Count (Read Only)
- Range("A1:B15").Font.Bold = True (Read and Write)
Methods
- Methods are the Actions that Can be Performed by Objects or
on Objects
- Methods for Collections
- Worksheets.Add
- Worksheets.Delete
- Methods for Objects
- Range("A1:B15").ClearContents
- ActiveCell.Copy
Events
- Objects Can Respond to Events, Such as Mouse Click, Double
Click on a Cell, Active a Worksheet, Open/Close/Save a Workbook,
etc.
- Such as Worksheet_Activate, Chart_Select
- Such as Sheet_Change, Chart_BeforeDoubleClick
XLDataSoft Data Analysis Experts
Return to Main
• MS EXCEL/VBA TRAINING COURSES - 3
ive Workbook's
bInformation
an Not Be Select by
e Cells
an Not Be Select by
e Cells
XLDataSoft Data Analysis Experts
Return to Main
• MS EXCEL/VBA TRAINING COURSES - 3
n & Results.xls is