A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Published Forms



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 25th 06, 06:59 PM posted to microsoft.public.outlook.program_forms
Snake_Plisken
external usenet poster
 
Posts: 7
Default Published Forms

A couple of months ago I asked for assistance in creating a custom form for
our IT Dept. The form has been created and works perfectly. Thank you for
your help. However, I need to place a shortcut in everyone's toolbar, within
Outlook, for ease of access. The form is in the Organizatonal Forms Library.
I know users can access the form simply by opening the Organizational Forms
Library and choosing it. But of course, there are users that can't follow
simple instructions. So that is the reason for placing the shortcut in the
toolbar. I have included the Macro that we are trying to use to accomplish
this. But for some reason it will not access the Forms Library, only
pre-determined folders. Could someone help me with this code and get it to
point to the correct path where the form is stored. Thanks for any
suggestions.
Here is the Macro:

Sub RunMyForm()
Dim myOlApp As Application
Dim myNameSpace As NameSpace
Dim myFolder As MAPIFolder
Dim myItems As Items
Dim myItem As Object

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = _
myNameSpace.GetDefaultFolder(olFolderNotes)
Set myItems = myFolder.Items
Set myItem = myItems.Add("IPM.Note.IT Work Request")
myItem.Display

Set myOlApp = Nothing
Set myNameSpace = Nothing
Set myFolder = Nothing
Set myItems = Nothing
Set myItem = Nothing
End Sub

I changed the 4th "Set" line to read:
myNameSpace.GetDefaultFolder(OrganizationalFormsLi brary)
The form is entitled "IT Work Request".

Again, Thanks for any help.
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link published forms in public folders? winternan Outlook - Using Forms 1 October 1st 06 08:22 PM
Published Message Forms in Public Folders Don't Retain Data aberdahl Outlook - Using Forms 4 August 9th 06 11:27 PM
Published form not visible Steinar Larsen Outlook - Using Forms 3 May 4th 06 02:46 PM
problems with published forms Martin Outlook - Using Forms 1 April 11th 06 03:19 PM
error trying to update published form in Orgizational Forms Librar Andrew Vital Outlook - Using Forms 2 January 27th 06 07:21 PM


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.