Action Buttons won’t run Macros

Z

Zebu

I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.

I create an action button by:
Save Presentation
AutoShapes > Action Buttons > select any button
Select Action setting
OK
Save Presentation
Go to slide show from Slide Show menu or lower left corner
Press new Action Button

If action is link to another slide or run a programm it works. If action is
run macro, nothing happens.

What am I doing wrong?
 
B

Bill Dilworth

Hi Zebu,

What are your Macro security settings at?

Even with settings at 'Very High', hyperlinks to places within the
presentation will work, but Macros will not.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
Z

Zebu

Can’t get macros to run in slide show by action button from Autoshapes or
Control Toolbox or check box. Is there another way?

How do I find and change macro security settings?
 
Z

Zebu

Can’t get macros to run in slide show by action button from Autoshapes or
Control Toolbox or check box. Is there another way?

How do I find and change macro security settings?
 
Z

Zebu

Can’t get macros to run in slide show by action button from Autoshapes or
Control Toolbox or check box. Is there another way?

Code generated by ppt from "Record Macro":
Sub MacroA()
'
' Macro recorded 8/20/2006 by Donandme
'
ActiveWindow.View.GotoSlide Index:=3
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.Copy
ActiveWindow.View.GotoSlide Index:=2
ActiveWindow.View.Paste
End Sub

Public Sub from_slide()

End Sub
 
Z

Zebu

Step "choose action settings" means I select macro.

When I select Tools > macros I get a window with a space at upper left for
selected macro, below that is a box that lists mavros, next is Location (file
name - no path) then Description. On the ridht is an liat of actions:
Run
Cancel
Step into
Edit
Create
Delete.

No "Security"

I check with Power Point Central for updates rregularly. Last 10 min ago

Program is Microsoft Power Point 98 SR-1

Is the code for name run separately or as part of macro? If part of macro
where does it go?
 
Z

Zebu

This is getting to be fun

I'm on Microsoft Windows XP Home Edition 5.1.2600 Service Pack 2 Build 2600

Windows Update says I have all latest as of 5 min ago.

Nothing about "preferences" on toolbar or help.

I did find Tools > Options > General and un checked "Macro Virus Protection"

That fixed it!

by "where does the code go" I mean do I run that code alone, that is only
that code, at begining or end of macro recording or does it go in each macro?
If in each macro at begining, end or arround recorded macro. Macro is
between .Name and End Sub?

Do you have any ideas why the things you expcted such as "Security" arn't
there

It's fixed! Thanks.
 
Z

Zebu

Can you recommend a tutorial, textbook, reference manual for VB for Office
I'm from the good ol' days. I speak Fortran and original UCSD Basic. I'm
OK at logic and program structure but need help on syntax and proper action
words.

Thanks again
 
D

David M. Marcovitz

There are lots of good books on VBA in general, but there are no good ones
on using VBA with PowerPoint. My book is for real beginners and geared to
people without much programming background, but it is the only one that is
dedicated to VBA and PowerPoint. You can get info about it at:

http://www.PowerfulPowerPoint.com/

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
S

shihhua123

This is what causing me trouble all the time. Some codes will not function
properly in slideshow by recording macro from editing ppt. Try using
ActivePresentation or SlideShowWindows instead of ActiveWindow. You will get
error while debuggging in vba. But it will run in the slideshow. Check help
for more detail of using them. Good luck!
 

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