Basically the user is presented with 4 different links, which each run a
different external presentation. When the user clicks on a link, I'd like a
macro to run so I can remove that link's info from an array (so it doesn't
keep appearing as an option) as well as running the external presentation.
How would I do this?
Rather than maintaining an array, I'd do it a bit more directly.
For example, you could create a slightly different macro for each of the
shapes and assign it to the shape's Action setting/Run Macro
Sub LaunchPresentation(oSh As Shape)
If Len(oSh.TextFrame.TextRange.Text) > 0 Then
Dim oPres As Presentation
Set oPres = Presentations.Open("c:\some\folder\file.ppsx")
oSh.TextFrame.TextRange.Text = ""
End If
End Sub
This makes any text in the shape disappear when clicked and launches the
associated presentation. Next time the shape is clicked, nothing happens,
because there's no longer any text.
==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/
PPTools add-ins for PowerPoint
http://www.pptools.com/
Are you testing it in slideshow mode or normal view?
>
> "Steve Rindsberg" wrote:
>
> > Rather than maintaining an array, I'd do it a bit more directly.
> > For example, you could create a slightly different macro for each of the
> > shapes and assign it to the shape's Action setting/Run Macro
> >
> > Sub LaunchPresentation(oSh As Shape)
> > If Len(oSh.TextFrame.TextRange.Text) > 0 Then
> > Dim oPres As Presentation
> > Set oPres = Presentations.Open("c:\some\folder\file.ppsx")
> > oSh.TextFrame.TextRange.Text = ""
> > End If
> > End Sub
> >
> > This makes any text in the shape disappear when clicked and launches the
> > associated presentation. Next time the shape is clicked, nothing happens,
> > because there's no longer any text.
OK, you're running it in slideshow view then. Try resaving the external
presentations as Slide Shows rather than as PPTs, change the code to
reflect that and see if that helps.
It'd also be convenient if you'd quote the previous posts in your replies.
Makes it easier to follow, especially for people who join the game late.
Thanks.
>
> "Steve Rindsberg" wrote:
>
> > Are you testing it in slideshow mode or normal view?
Sorry about the replies, I'm used to reading all this on the web. I forget
that this is also a newsgroup... :)
"Steve Rindsberg" wrote:
> .
>
Basically, when I click on a shape, the external presentation opens, plays,
then finishes and closes. When it closes, I'm back on the slide where I
clicked on the shape.
I wanted to be taken back to the first slide instead, so Bill suggested
making hidden shapes that cover the entire slide and when the mouse hovers
over then after returning to the original slide (this happens
instantaneously), they automatically hyperlink me back to the first slide.
This solution was working well until I started implementing your solution
here. Just wondering now if it's possible to have both solutions working the
way I want...?
"Steve Rindsberg" wrote:
> .
>
But first, I'm thinking it might be enough to add
SlideshowWindows(1).View.GoToSlide(1)
just before launching the external slide show.
Everything's working well, I think I've finished the PowerPoint!
Thanks heaps!
"Steve Rindsberg" wrote:
> .
>
Great ...