The button can be on the worksheet or on a userform that you would develop. The event that is mostly (85%) of macros used is clicking on a button. A lot of other events can happen to start a macro. You do not want your user to go to the Visual Basic Editor to trigger a macro. You have also clicked on the F8 key at the top of your keyboard and the macro got executed line by line. In the Visual Basic Editor you have gone to the menu bar and clicked on "Run/Run Sub/Userform" and the macro was executed. In earlier lessons you have used an event to start your macros. When does the VBA procedure (macro) start? When an EVENT happens. Use ALT/F11 to open the Visual Basic Editor as you learned in lesson 1. Note 2: Print this page, open Excel and a open a new workbook. Note 1: If you are using Excel 1997 to 2006 see lesson 9 here Here is a sample of what you will find in the downloadable Tutorial on Excel macros Starting, triggering a Macro in Excel
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |