Jump to content

Recommended Posts

Posted

I am trying to integrate ActiveX controls into my presentation. To keep my problem simple, here is what I have done:

1. Start Power Point

2. Insert New Slide (blank slide)

3. Activate Command toolbar (View->Toolbars->Control Toolbox)

4. Select Command button and drag it somewhere on the new slide

5. Double Click the button

6. Inside Public Sub CommandButton1_Click(), add the following line:

MsgBox "Inside the command button click", vbInformation, "inside code"

7. From the code editor, select Tools->References and check the box titled "Microsoft Scripting Runtime"

8. Save the Presentation

9. click the "Slide Show" button in the lower left of Power Point

10. When the presentation runs, click the command button

11. At this point, all is well and the message box is displayed.

12. The problem comes when I quit Powerpoint, re-open it, re-run the slide and click on the command button. This time, the code is not executed. I can keep clicking on the button and nothing happens. I have reproduced this several times. The only way to make the command button execute is the very first time. Once I have saved the presentation and closed it, the code will not execute. I have checked to make sure that the "Microsoft Scripting Runtime" is checked and it is.

Any ideas?

Thank You,

Becky McDermott


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...