powerpoint vba macro not running when shape is clicked -


i have created powerpoint presentation runs macros click of shape on slide. however, not able run macro presentation, editor.

i have searched site , found suggestions toward using activepresentation rather activewindow. however, using activepresenation can see in below code. msgbox not come up. ideas?

sub start_game()  msgbox "making things invisible"  dim integer dim slide_count integer dim shape shape  = 1 slide_count = activepresentation.slides.count msgbox slide_count  = 1 slide_count  each shape in activepresentation.slides(i).shapes if shape.name = "answer_block" activepresentation.slides(i).shapes("answer_block").visible = false end if next  next  end sub 


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -