How can I make a variable accessible across slides in PowerPoint 2007? I tried:
Slide42.myvar = 1
Is there any way to declare a "global" variable that can be accessed from all slides?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To have your variable across all slides, you need to declare it as
PublicorGlobal. You add a module to your slide and declare it as:To add a module to your slide, In the VBA editor, make sure that your presentation is highlighted in the left-hand pane. Then, choose Insert, Module from the menu bar to insert a new code module into your project. You can have your variable declarations there.