would like a custom button to select a form in the public folder

K

KimB

but have no idea how to write the macro. I have used the
choose form button successfully but it is a hassle to
scroll through the different folders to get to the form I
want. Can anyone help with the quick code for the macro?

thanks.
 
S

Sue Mosher [MVP]

Try this:

Set objFolder = GetFolder("Public Folders\All Folders\My Folder")
Set objMyItem = objFolder.Items("IPM.Post.MyForm")

You can get the GetFolder() function from
http://www.slipstick.com/dev/code/getfolder.htm. Obviously, it needs to use
the correct path to your folder. Also the name of the published form must be
correct and it must be published either to that folder or to the
Organizational Forms Library.

See http://www.slipstick.com/dev/launchform.htm for other form launching
ideas.
 

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