buttons that call VB code do not work after saving in powerpoint

G

Guest

I'm an new to powerpoint, but I am a seasoned VB programmer. The oddest
thing is happening. I create a button and double-click the button so that
the _Click() event is created. I add code to the event such as msgbox "hello
world". If I run the presentation, it works as expected. After I save the
presentation and then re-open it -- it no longer works. The button simply
does not call the code.

I've tried this on different computer and different versions of powerpoint
and is easily re-created.

Please help.

Thanks.
 
B

Bill Foley

Check "Tools", "Options", "Security", "Macro Security". I think your macro
setting is set to HIGH and needs to be at MEDIUM.

--
Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
"Success, something you measure when you are through succeeding."
 
G

Guest

Thank you for your response. I had tried that previously to no avail, but
re-focused on it after your reply. What I didn't realize is that after
chaning the macro security, the setting doesn't take effect immidiately -- I
found that you must close powerpoint and then reopen for the change to take
effect. I would think that there should be an aleart after changing the
setting that powerpoint must be restarted.

Thank you for your response. It helped tremendously.

Thanks,
Loren.
 
D

David M. Marcovitz

When PowerPoint opens a file, it determines whether or not the macros are
read. If it has opened the file without the macros (because the security
settings at the time were set to HIGH), it wouldn't even know the file
had macros. You can also register your suggestion with Microsoft at:

http://register.microsoft.com/mswish/suggestion.asp

--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top