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

  • Thread starter Thread starter KimB
  • Start date Start date
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.
 
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.
 
Back
Top