1.excel-vba- objects

1. Workbook expression:

Reference to be expressed: Workbooks (SN) - 1 from the start number

The file name to express: Workbooks ( "book name")

Workbook collection: Workbooks

Workbook: ThisWorkbook

Activity Workbook: ActiveWorkbook

 

2. Worksheet

The expression sequence number: WORKSHEETS (n) - number starting with 1

Expressed in terms of the worksheet name: WORKSHEETS ( "payroll")

Statements with worksheet Code Name: Sheet1, Sheet2 ...

 

 Sheet1, Sheet2, Sheet3 front portion is marked red

Active worksheet: ActiveWorksheet

 

3. The range of cells

Cell simplified representation: [a1]

Cell simplified representation: [a1: b1]

Standard representation: range ( "a1: b1")

Representation of a single cell: cells (1,1)

Active cell representation: activecell

Selected area representation: selection

Guess you like

Origin www.cnblogs.com/chillytao-suiyuan/p/12105813.html