Results 1 to 12 of 12

Thread: Command to open a user Form

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    John,
    Thank you for your reply. I don't believe I am having any issues with the toolbar itself. What I mean is the toolbar appears in my presentation by using the Tools / Addins feature. I am able to browse to the "ppa" file and successfully add the toolbar. The toolbar appears and button 1 calls the "Sub Button1()" code detailed below. In fact the msgBox displays then the form code is called. When the frmCBR.show code is called I get a run time error. I have trouble shooted the issue to the point where I feel the issue is that the toolbar code is only able to reference and/or call objects which are part of the toobar presentation??? (used strictly to create the toolbar - toolbar.ppa). The objects and code I need to access are in geekin.ppt. Again, since I am not familiar with powerpoint VBA development I may be missing something. I am open to any solution which would allow me to provide an accessible way for my user(s) to provide some user defined values and an interface to support a submit on geekin.ppt. I was under the impression that a userform and a button would be a logical choice. I can run the userform manually from within geekin.ppt visual basic environment and it works great... I simply can't seem to find a way to call the form from the normal presentation view. I am open to any other suggestions if this is not a good choice but I am sure there MUST be a path for accomplishing this. I would be happy to respond with any additional information which might be helpfull. Thanks again for any assistance.

    Sub Button1()
    ' This code will run when you click Button 1 added above
    ' Add a similar subroutine for each additional button you create on the toolbar
    MsgBox "CBR New code - frmCBR show"
    frmCBR.Show
    End Sub
    Last edited by Aussiebear; 04-28-2023 at 02:10 AM. Reason: Adjusted the code tags

Posting Permissions

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