• Open Form Button (2003)

    Author
    Topic
    #428699

    Is there an easy way to open a custom form from a taskbar button? I can’t seem to code for it in VBA. I want a dropdown button with a list of various email forms I have designed to open. Can’t find any help anywhere!

    Viewing 0 reply threads
    Author
    Replies
    • #996604

      Sorry if everyone knows this and I am just answering my own questions, but found this code here which is exactly what I needed.

      To open ANY custom published form, put this code in the the VB Editor and add a button assigned to that macro. (you just need to know your form’s name)

      Sub openForm()
      Set objfolder = Application.ActiveExplorer.CurrentFolder
      Debug.Print objfolder.Name
      Set objItem = objfolder.Items.Add(“IPM.Note.Temp”) ‘here is where you put the form’s name
      objItem.Display
      Set objItem = Nothing
      End Sub

      NIghtNight

    Viewing 0 reply threads
    Reply To: Open Form Button (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: