Discussion:
Action Buttons won’t run Macros
(too old to reply)
Zebu
2006-08-28 21:49:02 UTC
Permalink
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?
--
Zebu
John Wilson
2006-08-28 21:55:02 UTC
Permalink
Are you sure the macro will run in slide show mode? What does the code look
like?--
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
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?
--
Zebu
Zebu
2006-08-29 00:19:02 UTC
Permalink
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?
--
Zebu
Post by John Wilson
Are you sure the macro will run in slide show mode? What does the code look
like?--
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
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?
--
Zebu
Zebu
2006-08-29 05:56:01 UTC
Permalink
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
--
Zebu
Post by John Wilson
Are you sure the macro will run in slide show mode? What does the code look
like?--
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
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?
--
Zebu
shihhua123
2008-01-11 18:44:00 UTC
Permalink
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!
Post by 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?
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
--
Zebu
Post by John Wilson
Are you sure the macro will run in slide show mode? What does the code look
like?--
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
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?
--
Zebu
Bill Dilworth
2006-08-28 22:23:08 UTC
Permalink
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
.
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > 'macro name' > run.
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?
--
Zebu
Zebu
2006-08-29 00:20:01 UTC
Permalink
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?
--
Zebu
Post by 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
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
yahoo. They answer most of our questions.
com www.pptfaq.com
..
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > 'macro name' > run.
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?
--
Zebu
Steve Rindsberg
2006-08-29 16:47:06 UTC
Permalink
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
Save Presentation
AutoShapes > Action Buttons > select any button
Select Action setting
- Did you leave out a step? At this point, you'd need to choose the macro that
you want to run.
Post by Zebu
OK
Save Presentation
Go to slide show from Slide Show menu or lower left corner
Press new Action Button
- Check security settings: From the main menu, choose Tools, Macro, Security.
Set it to Medium or lower for now.

Also, the macro you recorded will not work in slideshow view. See:

Macros I record in Normal/Slide view don't work in Slide Show
http://www.pptfaq.com/FAQ00159.htm
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Zebu
2006-08-30 05:14:02 UTC
Permalink
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?
--
Zebu
Post by Steve Rindsberg
Post by Zebu
I cannot get Action Buttons ti run macros. In a presentation, I have macros
that run from Tools > Macros > ‘macro name’ > run.
Save Presentation
AutoShapes > Action Buttons > select any button
Select Action setting
- Did you leave out a step? At this point, you'd need to choose the macro that
you want to run.
Post by Zebu
OK
Save Presentation
Go to slide show from Slide Show menu or lower left corner
Press new Action Button
- Check security settings: From the main menu, choose Tools, Macro, Security.
Set it to Medium or lower for now.
Macros I record in Normal/Slide view don't work in Slide Show
http://www.pptfaq.com/FAQ00159.htm
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve Rindsberg
2006-08-30 22:01:44 UTC
Permalink
Post by Zebu
When I select Tools > macros I get a window with a space at upper left for
selected macro,
Program is Microsoft Power Point 98 SR-1
Whoa, hold up. You're on a Mac? No wonder we're confused. This is mostly a
Windows group (though the name doesn't make that obvious).

OK. Instead, use PowerPoint Preferences, General tab and remove the check next
to "Enable virus protection"
Post by Zebu
Is the code for name run separately or as part of macro? If part of macro
where does it go?
I don't understand the question. Can you try restating it? Thanks.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Zebu
2006-08-31 01:50:02 UTC
Permalink
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.
--
Zebu
Post by Steve Rindsberg
Post by Zebu
When I select Tools > macros I get a window with a space at upper left for
selected macro,
Program is Microsoft Power Point 98 SR-1
Whoa, hold up. You're on a Mac? No wonder we're confused. This is mostly a
Windows group (though the name doesn't make that obvious).
OK. Instead, use PowerPoint Preferences, General tab and remove the check next
to "Enable virus protection"
Post by Zebu
Is the code for name run separately or as part of macro? If part of macro
where does it go?
I don't understand the question. Can you try restating it? Thanks.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve Rindsberg
2006-08-31 18:28:59 UTC
Permalink
Post by Zebu
This is getting to be fun
I'm on Microsoft Windows XP Home Edition 5.1.2600 Service Pack 2 Build 2600
Without accurate information, we can't give you accurate answers.

You're not using PowerPoint 98 as you stated earlier. That's a Mac version.
PowerPoint 97, then, judging from your other remarks.
Post by Zebu
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?
A macro and a VBA subroutine are the same thing.

The code between

Sub Something()
and
End Sub

is the contents of the macro and the "Something" above is the NAME of the macro
that you see when you assign it to an action setting.

Does that help?
Post by Zebu
Do you have any ideas why the things you expcted such as "Security" arn't
there
Because it's an older version of PowerPoint. Things move, get added or removed
from one version to the next. That's why it's important to explain EXACTLY
which version you're using.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Zebu
2006-09-01 05:05:01 UTC
Permalink
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
--
Zebu
Post by Steve Rindsberg
Post by Zebu
This is getting to be fun
I'm on Microsoft Windows XP Home Edition 5.1.2600 Service Pack 2 Build 2600
Without accurate information, we can't give you accurate answers.
You're not using PowerPoint 98 as you stated earlier. That's a Mac version.
PowerPoint 97, then, judging from your other remarks.
Post by Zebu
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?
A macro and a VBA subroutine are the same thing.
The code between
Sub Something()
and
End Sub
is the contents of the macro and the "Something" above is the NAME of the macro
that you see when you assign it to an action setting.
Does that help?
Post by Zebu
Do you have any ideas why the things you expcted such as "Security" arn't
there
Because it's an older version of PowerPoint. Things move, get added or removed
from one version to the next. That's why it's important to explain EXACTLY
which version you're using.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
David M. Marcovitz
2006-09-01 13:23:34 UTC
Permalink
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/
Post by 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
Steve Rindsberg
2006-09-01 21:37:26 UTC
Permalink
Post by 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.
I'd start with any book on VB5 or VB6 that appeals to you; that'll cover the
basics of VB/VBA as it applies to all VBA implementations

Then for PPT, David's book and poke around the programming section of the PPT
FAQ (http://www.pptfaq.com/) ... follow the leads there to other resources. It
points to several other very good PPT/VBA sites.


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Loading...