Creating toolbar button for form

S

Savannah

I created a form and wrote a macro to make a toolbar button, but my toolbar
button does not work. However, I now have a link to and can access the form
by clicking "Actions". Did I do something incorrectly when I wrote the code?

This is the code I used:
Sub DisplayForm()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.MyForm")
myItem.Display
End Sub

I would appreciate any guidance.
 

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