Creating Buttons To Run Code

Refer to the part one file for the beginning of the lesson.

Index Builder Exercise

Index Builder Result

Now we put the finishing touches on the table of contents project.  See the past two lessons to see how to record the initial code, then trim it and copy it to create the macros for the other sheets.

We are done recording and building the macro.  Now let's complete the index:

To create buttons for the other sheets:

See this image for what the finished product could look like. 

.

Remember to test each of the buttons.

To complete the loop, you may also want to create a button on each of the non index sheets to go back to the index.  To review, you would:

Now you have created a workbook that makes it easy for your user to navigate around the sheets.

 

Return To Excel Tips Index