Vba Set Worksheet Object. Select a sheet and activate the Properties Toolwindow. For example, the Worksheet has a UsedRange property that return a.
Worksheet object in Microsoft Excel represents a Worksheets collection of the Workbook. If you write macros for a specific line of business, your worksheet actions will generally assume a specific (type of) workbook as it's context. Similar to the Range Object, the Worksheet object has its own set of properties and methods.
The reason is that we are dealing with a collection of worksheets most of the time, so using Worksheets enables.
Worksheets(Index) returns the Nth worksheet from left to right.
For example, the Worksheet has a UsedRange property that return a. Add method are, in order (Before, After, Count, Type): Before: the worksheet (an object referencing it) to insert. Examples of VBA Objects are Collections, Worksheets, Charts and so on.