Results 1 to 4 of 4

Thread: How do I "click" a Command Button in PowerPoint edit mode?

  1. #1

    How do I "click" a Command Button in PowerPoint edit mode?

    Simple, but dumb question. I have a PowerPoint presentation that requires a lot of edits depending on service level. I created a Form window, and have all of the code in place to make the edits quickly but I am stumped on how to show the form to the creator-

    I put a CommandButton on the 1st page of the presentation, and it has the following OnClick code but when it's clicked, it only selects the button (edit mode). How can I make it to where the user can click the button while PowerPoint is in edit mode, or another way to show the form?

    Private Sub CommandButton1_Click()
    End Sub


  2. #2
    Moderator VBAX Guru Aussiebear's Avatar
    Dec 2005
    Welcome to the VBAX forum RussellP904. Did by any chance you post this question elsewhere?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Master
    Feb 2007
    If you crosspost please mention this - it avoids people working on problems solved elsewhere!

    There is no simple way to make buttons clickable in Edit Mode. If you know how to create a class module with an event trap then you can but i guess you don't know how to do that.

    One possibility is to create a Ribbon tab / Button with XML. This will run a vba macro to open your form. There is a learning curve but not as steep as writing class modules!

    Test out the attached file to see how it works. NOTE Macros may be disabled - save as and reload the file making sure macros are enabled.

    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials

  4. #4
    VBAX Sage
    Apr 2007
    United States
    If you just want the setup macro to run when the pptm is opend, I think that the onLoad CustomUI will work
    Attached Files Attached Files


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts