toolbar button assigned to published form

G

Guest

Im trying to allocate a toolbar button to run a form published in the
organizational library. If this code runs a form that is published in the
Inbox, how do I change the code for it to point to a form in the
organizational library?

code is:

Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.Form Name")
myItem.Display
End Sub

Thank you
 
S

Sue Mosher [MVP-Outlook]

No change is needed. The code you have will load a form published in either
the Inbox, the Personal Forms library, or the Org Forms library.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top