9. Analyzing VBA Code (cont.) Microsoft Office Excel 2007 - Illustrated Selects range object cell A2 Applies bold formatting to range A3:F3 Sets width of columns B-F to AutoFit
10.
11. Writing VBA Code (cont.) Microsoft Office Excel 2007 - Illustrated Comments begin with apostrophes Information between quotes will be inserted in the active cell
12.
13.
14. Adding a Conditional Statement (cont.) Microsoft Office Excel 2007 - Illustrated Elements of the If…then…Else statement appear in blue
15.
16. Prompting the User for Data (cont.) Microsoft Office Excel 2007 - Illustrated This text will appear in a dialog box Comment points out error in next line of the procedure
17.
18. Debugging a Macro (cont.) Microsoft Office Excel 2007 - Illustrated Indicates that the LeftFooter variable is empty
19.
20. Creating a Main Procedure (cont.) Microsoft Office Excel 2007 - Illustrated MainProcedure calls each procedure in the order shown
21.
22. Running a Main Procedure (cont.) Microsoft Office Excel 2007 - Illustrated Current Module button Printing Macro Procedures Current Project button