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

Tags: , , , ,

Opening a specific Custom form with a macro





 
 
Thread Tools Display Modes
  #1  
Old May 16th 07, 11:58 PM posted to microsoft.public.outlook.program_forms
DawnTreader
external usenet poster
 
Posts: 5
Default Opening a specific Custom form with a macro

hello

i have a number of custom forms i use for different purposes and i need to
create a button that will call upon them and then save them in the proper
folder.

for example, i am a service coordinator, i send technicians to fix things
all over and for each trip i need to have a checklist. the form is made, i
have a checklist appointment form that i call PreTripChecklist. i want to be
able to press a button and have it open that form and then when i finish i
need it to be saved in my normal personal calender so that i will get a
reminder.

that last is the real problem, even though i have created other folders to
use those forms in the problem is that i wont get a reminder if the items are
stored in another folder other than the main calender folder.

if someone can suggest some code, or lead me to a tute or something, it
would be appreciated. thanks.
Ads
  #2  
Old May 17th 07, 12:51 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Opening a specific Custom form with a macro

To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for other ideas.

If you want reminders from non-default folders, upgrade to Outlook 2007 (for folders in your default store) or get the add-in from http://www.slovaktech.com

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"DawnTreader" wrote in message ...
hello

i have a number of custom forms i use for different purposes and i need to
create a button that will call upon them and then save them in the proper
folder.

for example, i am a service coordinator, i send technicians to fix things
all over and for each trip i need to have a checklist. the form is made, i
have a checklist appointment form that i call PreTripChecklist. i want to be
able to press a button and have it open that form and then when i finish i
need it to be saved in my normal personal calender so that i will get a
reminder.

that last is the real problem, even though i have created other folders to
use those forms in the problem is that i wont get a reminder if the items are
stored in another folder other than the main calender folder.

if someone can suggest some code, or lead me to a tute or something, it
would be appreciated. thanks.

  #3  
Old May 17th 07, 02:21 AM posted to microsoft.public.outlook.program_forms
DawnTreader
external usenet poster
 
Posts: 5
Default Opening a specific Custom form with a macro

Hello

thanks for the response!

i will try some of that out. the outlook 2007 option is up to the company i
work for.

let you know later how things work out.

"Sue Mosher [MVP-Outlook]" wrote:

To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for other ideas.

If you want reminders from non-default folders, upgrade to Outlook 2007 (for folders in your default store) or get the add-in from http://www.slovaktech.com

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"DawnTreader" wrote in message ...
hello

i have a number of custom forms i use for different purposes and i need to
create a button that will call upon them and then save them in the proper
folder.

for example, i am a service coordinator, i send technicians to fix things
all over and for each trip i need to have a checklist. the form is made, i
have a checklist appointment form that i call PreTripChecklist. i want to be
able to press a button and have it open that form and then when i finish i
need it to be saved in my normal personal calender so that i will get a
reminder.

that last is the real problem, even though i have created other folders to
use those forms in the problem is that i wont get a reminder if the items are
stored in another folder other than the main calender folder.

if someone can suggest some code, or lead me to a tute or something, it
would be appreciated. thanks.


 




Thread Tools
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
Custom Task Form - specific category selected Rob Moore Outlook - Using Forms 1 January 7th 07 01:59 AM
Outlook custom form opening... Radiohead Add-ins for Outlook 1 April 25th 06 01:50 PM
Outllok custom form opening sv_korolev@mail.ru Outlook - Using Forms 0 April 10th 06 12:24 PM
How do I link a macro to a CommandButton in a custom form, want us Capone2377 Outlook - Using Forms 1 February 5th 06 01:15 AM
opening new custom Message form Melbin Outlook - Using Forms 2 January 24th 06 01:16 PM


All times are GMT +1. The time now is 02:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mortgages - Property for sale in Spain - Credit Card Consolidation - Credit Card - Final Fantasy Wallpapers