From the course: Excel: Scenario Planning and Analysis

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Link a macro to a shape

Link a macro to a shape

From the course: Excel: Scenario Planning and Analysis

Start my 1-month free trial

Link a macro to a shape

- [Instructor] After you have recorded one or more macros that recreate desired pivot table positions, you can add elements to your workbook that let you run those macros quickly and in the desired order. In this movie, I will show you how to link a macro to a shape, so that when you click the shape the macro will run. My sample file is Project_Analysis_04_07, which is a macro-enabled workbook that you can find in the chapter four folder of your exercise files collection. I just opened the file, and you'll see a yellow security warning bar, message bar, just below the ribbon and above the formula bar. This message bar indicates that the workbook does contain macros, and that they've been disabled. Macros are computer code, and like any other type of computer code, it can be a security problem. You can get macro viruses and other problems as well. However, in this case, I happen to know that the macros are okay, I created it. So I can click Enable Content to enable the macros to run…

Contents