PC Review


Reply
Thread Tools Rate Thread

Clicking a command button gets no response

 
 
rcfinch
Guest
Posts: n/a
 
      14th Jul 2003
I have a command button on a slide with a VBA click event
that uses the ShellExecute function (which is declared in
the code) to open another PP file in .pps format. When I
first create the button and its associated code, all
works fine. Clicking the button causes the Click event to
execute and the other PP file opens and plays. However,
at some point when I load the PP file with the button,
the Click event quits executing. I have tried putting a
breakpoint in the code to see what is happening, but the
Click event is never initiated when the button is
clicked. It's as though PP has no clue that there is a
Click event associated with the button.

Any ideas?

rcfinch

 
Reply With Quote
 
 
 
 
Steve Rindsberg
Guest
Posts: n/a
 
      14th Jul 2003
For this to work, you need to turn your PPT with code into a PPA (powerpoint
addin).

See the add-in FAQ on http://www.mvps.org/skp/

--

Steve Rindsberg PPT MVP
PPTLive ( http://www.pptlive.com ) Featured Speaker
PPTools: http://www.pptools.com
PPT FAQ: http://www.pptfaq.com


"rcfinch" <(E-Mail Removed)> wrote in message
news:088301c34a08$b2f350b0$(E-Mail Removed)...
> I have a command button on a slide with a VBA click event
> that uses the ShellExecute function (which is declared in
> the code) to open another PP file in .pps format. When I
> first create the button and its associated code, all
> works fine. Clicking the button causes the Click event to
> execute and the other PP file opens and plays. However,
> at some point when I load the PP file with the button,
> the Click event quits executing. I have tried putting a
> breakpoint in the code to see what is happening, but the
> Click event is never initiated when the button is
> clicked. It's as though PP has no clue that there is a
> Click event associated with the button.
>
> Any ideas?
>
> rcfinch
>



 
Reply With Quote
 
rcfinch
Guest
Posts: n/a
 
      16th Jul 2003
I am using PowerPoint 2002.

By the way, the presentation seems to work fine on my
work computer which also runs PP 2002. The Click event
executes every time I click the command button.

I need to compare the exact version of PP on my work vs
home computer. Perhaps there is a bug in my version at
home and it needs updating.

rcfinch

>-----Original Message-----
>rcfinch,
>Depending upon your PowerPoint version this could be due

to either Macro
>security level or due to the Automation Security level.

Could you mention
>the version you are using?
>
>--
>Regards
>Shyam Pillai
>
>Batch Exporter
>http://www.mvps.org/skp/products/xport/
>
>"rcfinch" <(E-Mail Removed)> wrote in message
>news:088301c34a08$b2f350b0$(E-Mail Removed)...
>> I have a command button on a slide with a VBA click

event
>> that uses the ShellExecute function (which is declared

in
>> the code) to open another PP file in .pps format. When

I
>> first create the button and its associated code, all
>> works fine. Clicking the button causes the Click event

to
>> execute and the other PP file opens and plays. However,
>> at some point when I load the PP file with the button,
>> the Click event quits executing. I have tried putting a
>> breakpoint in the code to see what is happening, but

the
>> Click event is never initiated when the button is
>> clicked. It's as though PP has no clue that there is a
>> Click event associated with the button.
>>
>> Any ideas?
>>
>> rcfinch
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Close Form After Clicking on command button Pam Microsoft Access Forms 0 9th Apr 2009 09:47 PM
get response from command button =?Utf-8?B?QnJ1Y2U=?= Microsoft Access VBA Modules 1 21st Nov 2007 10:05 AM
email from a form by clicking on a command button... Jim Wood Microsoft Access VBA Modules 1 3rd Sep 2007 12:39 AM
Show subform only by clicking on a command button =?Utf-8?B?am9qbw==?= Microsoft Access Form Coding 2 20th Oct 2005 10:55 AM
Generic Command Button Response David W Microsoft Excel Programming 1 25th Aug 2003 05:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:38 AM.