From: Shyam Pillai on
Have you tried refreshing the slide after your macro runs?

Sub RefreshSlide()
On Error Resume Next
With SlideShowWindows(1).View
.GotoSlide .CurrentShowPosition
End With
End Sub

Regards,
Shyam Pillai

Toolbox
http://skp.mvps.org/toolbox

"shihhua123" <shihhua123(a)discussions.microsoft.com> wrote in message
news:BBEDA584-7B77-4399-9093-69EBE1739A85(a)microsoft.com...
> Thanks, John,
>
> I was using vba. Problem is, it only work properly in Power point 2003,
> not
> in Power point 2007.
>
> If you have both 2003 and 2007, you can easily see the problem by putting
> another two buttons on the same page besides the "trigger" button. One
> calls
> "show" which will do .visible=msoTrue to show "trigger". Another calls
> "hide" which will do .visible=msoFalse to hide "trigger." "Trigger" is
> assigned in ppt to run macro when mouse click as well as to make a sound
> when
> mouse over.
>
> In both power point 2003 and 2007, "trigger" will disappear immediately by
> clicking "hide".
>
> To see "trigger" again, however, are different in these two ppt versions.
>
> In ppt 2003, "trigger" will show immediately by clicking "show" and it can
> execute mouse click and mouse over macro properly.
>
> In ppt 2007, "trigger" will not show by clicking "show" only once. I will
> have to either leave the page and then come back, or click "show" for the
> second time. More over, it will not run macro by mouse click and will not
> play sound when mouse over.
>
> To be able to make "trigger" to run macros again in ppt 2007, "show" must
> also do .ActionSettings(ppMouseClick).run="AJob" and
> .ActionSettings(ppMouseClick).Action=ppActionRunMacro. Also, "show" must
> be
> clicked twice before "trigger" become functionable (leave the page and
> then
> come back will not play the trick anymore). However, it does play sound
> when
> mouse over at the same time when mouse click is enabled again (means after
> clicking "show" twice.)
>
> Any more clue?
>
> Sincerely,
> Shih-Hua
>
>
> "John Wilson" wrote:
>
>> If they are on different pages then you will have to use vba.
>> --
>> Amazing PPT Hints, Tips and Tutorials
>>
>> http://www.PPTAlchemy.co.uk
>> http://www.technologytrish.co.uk
>> email john AT technologytrish.co.uk
>>
>>
>> "shihhua123" wrote:
>>
>> > Hi, John,
>> >
>> > Your suggestion does bring the action button out by clicking "next" on
>> > the
>> > same page. However, in my application, some action buttons are not
>> > allowed
>> > to be shown until clicking a button on another page. Do you have any
>> > suggestion for that?
>> >
>> > Thank you for your help.
>> >
>> > Sincerely,
>> > Shih-Hua
>> >
>> > "John Wilson" wrote:
>> >
>> > > shihhua
>> > >
>> > > If at all possible I always avoid macros. In this case you can
>> > > probably do
>> > > what you need without.
>> > >
>> > > Give the action button an entrance animation "Appear" and set it to
>> > > be
>> > > triggered by a click on the "Next" button. See if that works for you
>> > > --
>> > > Amazing PPT Hints, Tips and Tutorials
>> > >
>> > > http://www.PPTAlchemy.co.uk
>> > > http://www.technologytrish.co.uk
>> > > email john AT technologytrish.co.uk
>> > >
>> > >
>> > > "shihhua123" wrote:
>> > >
>> > > > In my application, some action buttons (called as "triggers" for
>> > > > now)
>> > > > shouldn't be seen/turned on until the slide is visited again.
>> > > > Therefore, I
>> > > > purposely put "next" button on the slide to run a macro that will
>> > > > make
>> > > > "triggers" visible.
>> > > >
>> > > > In power point 2003, these "triggers" become visible and they run
>> > > > pre-assigned macro when the slide is re-visited.
>> > > >
>> > > > In power point 2007, these "triggers" also become visible; however,
>> > > > they
>> > > > don't run macro when the page is re-visited for the 1st time. They
>> > > > will only
>> > > > run after "next" is executed at least twice. That means, they
>> > > > won't function
>> > > > until the page is at least visited three times!!!
>> > > >
>> > > > Is there a way to fix this problem? I appreciate any answer.
>> > > >
>> > > > Thank you very much,
>> > > > Shih-Hua
>> > > > P.S. BTW, I found "triggers" might not run pre-assgiend macros and
>> > > > it is
>> > > > necessary to include assigning actions in the "next" macro, too.