3. Training Project 1.3: VBA Program
Training purpose: hands-on writing VBA program
Training content: add or delete modules, write hands-on programs
Homework: CSDN publishes his first VBA program code.
For example, automatically create a new worksheet in the active workbook and name it "Employee Attendance Sheet".
1. Open the VBE window, click the menu "Insert" → "Module", create a new "Module 2" in the workbook, double-click the module, and open the following figure:
2. Set the cursor in the code window corresponding to "Module 2", click "Insert" → "Process" in the menu bar, and enter the process name and other information in the "Add Process" dialog box that opens, as shown in the first picture below , click "OK" to form the second picture below:
4. Enter the code in the box as shown below;
5. The operation result is as follows: