开发者

Variables across PowerPoint slides

开发者 https://www.devze.com 2023-02-17 05:24 出处:网络
How can I make a variable accessible across slides in PowerPoint 2007? I tried: Slide42.m开发者_StackOverflowyvar = 1

How can I make a variable accessible across slides in PowerPoint 2007? I tried:

Slide42.m开发者_StackOverflowyvar = 1

Is there any way to declare a "global" variable that can be accessed from all slides?


To have your variable across all slides, you need to declare it as Public or Global. You add a module to your slide and declare it as:

Public MyVar as Integer

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消