PDA

View Full Version : Shapes behaving like command buttons and changing shape colours



NKanabar
08-20-2017, 02:07 AM
Hi All

I was wondering if anyone can help, I'm new to vba and can't get my head around getting shape to behave like command buttons.

I am trying to recreate the game Blockbusters in ppt 2013/2016. So I have a main page with the Hexagon numbered 1-25. If for example you click on Hex 1 it will take you to the slide for Qu 1.

On the slide of qu 1 I have drawn 3 other hexagon with 3 different colours...so when you click on either one then it will return to the main slide and change the colour of qu 1 to which every colour hexagon was pressed. Can anyone help with the code??

John Wilson
08-20-2017, 03:16 AM
Have a look at the code in this presentation.

20123

Paul_Hossler
08-20-2017, 06:44 PM
To run John's code from a shape, you need to select the shape, right click on Link, and assign the macro

The called macro receives the clicked shape as an input parameter so that it knows what to do with it, for it, or to it

20131