|
(1) 模块声明:
Sub sName() ... End Sub
Sub xxxxx()
XXXXXXXXX
End Sub
(2) 变量声明:
Dim sPara As sType
Dim para1, para2, para3
Dim para4 As workbook, para5 As String
Dim G As Long
(3) 选择结构:
With ... End With
If condition Then ... End If
With Workbooks(1).ActiveSheet
For G = 1 To Sheets.Count
Wb.Sheets(G).UsedRange.Copy .Cells(.Range("B65536").End(xlUp).Row + 1, 1)
Next
WbN = WbN & Chr(13) & Wb.Name
Wb.Close False
End With
(4) 循环结构
Do While condition ... Loop
For i = 0 to 100 ... Next
(5) 输出Log:
MsgBox sString
|
|