Re: Opening a specific Custom form with a macro

Status
Not open for further replies.
D

DawnTreader

Hello Sue

can i use something like you have mentioned in your post to push a form to

someone's calendar to be used as the default form?

or will they have to install it manually?

"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

> > Sue Mosher
> 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" <DawnTreader> wrote in message news:9171FECB-52AC-47C8-92BF-236DEB041543@microsoft.com...
> > 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.

>
 
Sorry, but I don't know that "something" you might be referring to. See

http://www.outlookcode.com/article.aspx?id=27 for info on distributing forms

to other users and http://www.outlookcode.com/article.aspx?ID=39 for

information on making a form the default for a folder. That's a task that

only a folder owner can do, not someone with only delegate rights.

Sue Mosher

"DawnTreader" <DawnTreader> wrote in message

news:7BB815F7-6D33-408A-ABB0-A20B29799298@microsoft.com...
> Hello Sue

> can i use something like you have mentioned in your post to push a form to
> someone's calendar to be used as the default form?

> or will they have to install it manually?

> "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
> >



> > "DawnTreader" <DawnTreader> wrote in message
> > news:9171FECB-52AC-47C8-92BF-236DEB041543@microsoft.com...
> > > 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.

> >
 
Hello Sue

sorry, sometimes i write in haste...

this is what i meant by something: Namespace.GetSharedDefaultFolder

can i use "something", code or script like the one i asked about to open a

form and dump it to a specific folder, to install a form in a shared calendar

folder. i can get the user to make me an "owner" of the folder but i dont

know if this is the best way to go about this. i could walk him through the

steps to "publish" a form to his folder, but i dont even fully understand the

way the forms managment dialog works. i think that its the most unintuitive

interface microsoft has.

anyways, those links you posted will probalby help me to come up with a

solution, thanks for your time. :)

"Sue Mosher [MVP]" wrote:


> Sorry, but I don't know that "something" you might be referring to. See
> http://www.outlookcode.com/article.aspx?id=27 for info on distributing forms
> to other users and http://www.outlookcode.com/article.aspx?ID=39 for
> information on making a form the default for a folder. That's a task that
> only a folder owner can do, not someone with only delegate rights.

> > Sue Mosher
> > >

> "DawnTreader" <DawnTreader> wrote in message
> news:7BB815F7-6D33-408A-ABB0-A20B29799298@microsoft.com...
> > Hello Sue
> > can i use something like you have mentioned in your post to push a form to
> > someone's calendar to be used as the default form?
> > or will they have to install it manually?
> > "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
> >>

>
> >> "DawnTreader" <DawnTreader> wrote in message
> >> news:9171FECB-52AC-47C8-92BF-236DEB041543@microsoft.com...
> >> > 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.
> >>


>
 
Yes, if you want to publish a form to another person's defautl mailbox

folder and IF you have appropriate permission, GetSharedDefaultFolder would

play a role. But that's only a small part of the process. I think a better

solution would be to give the other person a script to run.

Sue Mosher

"DawnTreader" <DawnTreader> wrote in message

news:1AF4268B-E29E-40AF-BC8E-E655F0344518@microsoft.com...
> Hello Sue

> sorry, sometimes i write in haste...

> this is what i meant by something: Namespace.GetSharedDefaultFolder

> can i use "something", code or script like the one i asked about to open a
> form and dump it to a specific folder, to install a form in a shared
> calendar
> folder. i can get the user to make me an "owner" of the folder but i dont
> know if this is the best way to go about this. i could walk him through
> the
> steps to "publish" a form to his folder, but i dont even fully understand
> the
> way the forms managment dialog works. i think that its the most
> unintuitive
> interface microsoft has.

> anyways, those links you posted will probalby help me to come up with a
> solution, thanks for your time. :)

> "Sue Mosher [MVP]" wrote:
>
> > Sorry, but I don't know that "something" you might be referring to. See
> > http://www.outlookcode.com/article.aspx?id=27 for info on distributing
> > forms
> > to other users and http://www.outlookcode.com/article.aspx?ID=39 for
> > information on making a form the default for a folder. That's a task that
> > only a folder owner can do, not someone with only delegate rights.
>

>> "DawnTreader" <DawnTreader> wrote in message
> > news:7BB815F7-6D33-408A-ABB0-A20B29799298@microsoft.com...
> > > Hello Sue
> >> > can i use something like you have mentioned in your post to push a form
> > > to
> > > someone's calendar to be used as the default form?
> >> > or will they have to install it manually?
> >> > "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
> > >>

> >
> > >> "DawnTreader" <DawnTreader> wrote in message
> > >> news:9171FECB-52AC-47C8-92BF-236DEB041543@microsoft.com...
> > >> > 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.
> > >>

>

>
>>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Opening a link from a specific sender automatically Outlook VBA and Custom Forms 4
A Opening a link from an email automatically Outlook VBA and Custom Forms 0
L Opening People Outlook 2021 Using Outlook 2
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
Witzker Place cursor at opening, a user defined OL contact form Outlook VBA and Custom Forms 3
A OutLook For Mac 16.46 Comes Up In Small Window When Opening Using Outlook 4
U Disable "Always ask before opening" Dialog Using Outlook 3
Wayne Outlook locks up when opening "Manage Rules & Alerts" Using Outlook 7
B Outlook 2010 Opening Mail Attachment Using Outlook 2
A Warning When Opening attachment Using Outlook 7
D Prevent popup of "Do you want to save changes?" when closing after opening an appointment to view Outlook VBA and Custom Forms 2
H Upon opening Outlook, make my popmail inbox open instead of outlook.com inbox Using Outlook 1
J Outlook 2010 Changing events in Outlook calendar via opening file, importing CSV Using Outlook 0
L What are the risks of opening an Outlook 2016 .pst file in Outlook 2010? Using Outlook 4
D Outlook 2007 crashes when opening an email Using Outlook 2
A Outlook 2016- unable to have all subfolders expanded when opening outlook Using Outlook 11
GregS Immediate crash on opening Using Outlook 3
Diane Poremsky Error Opening Outlook and Control Panel's Mail Applet Using Outlook 0
S my vbscript button1_click code works on appointment created but not on opening an existing apntmn Outlook VBA and Custom Forms 16
J Opening Attachments - in People Using Outlook 2
Mistyfied Outlook 2016 not opening Using Outlook 2
M Update field codes when opening Outlook Template Outlook VBA and Custom Forms 2
R Outlook PST not opening Using Outlook 1
U .pst file error at opening outlook Using Outlook 1
A Problems Opening Excel from Outlook Outlook VBA and Custom Forms 3
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments Using Outlook 0
S macro for opening attachments and printing Using Outlook 1
Z how to make OL (2007) to use custom contact form when importing / opening .VCF? Using Outlook 1
T Opening email causes "Contacting ..." message Using Outlook 1
K Outlook 2013 stuck "processing" when opening. Using Outlook 3
S Opening Outlook Windows Using Outlook 1
S PoP up reminder while opening the outlook? Outlook VBA and Custom Forms 1
J Opening/Archiving/Import/Export PST files Using Outlook 4
Y (Shared Folder) Using the preview pane to open and close a fax, without opening the email itself Using Outlook 1
E OL2007 on Exchange: opening OL on different computers Using Outlook 1
Z outlook 2007 - opening a contact from the search results doesn't use the custom form Using Outlook 10
T Error opening mail with pictures - "The linked image cannot be displayed" Using Outlook 3
P I'm getting an error when opening Outlook "Mobile me stopped working Using Outlook 1
D opening Word Document in a business contact? BCM (Business Contact Manager) 3
B Contact changes from Personal to Shared when opening custom form Using Outlook 0
C How to stop iCloud calendars opening by default Using Outlook 8
U outlook 2010 freezes/crashes when opening encrypted e-mails Using Outlook 0
G OLMAPI32.dII error prevents Outlook 2010 from opening Using Outlook 2
D Custom Tool Bar and/or Commands do not remain when re-opening Outlook 2007 Using Outlook 3
G opening Outlook again after closing closing? Using Outlook 0
B Outlook 2010: how to mark messages without opening? Eg for deletion Using Outlook 2
M I cannot start Microsoft Outlook 2013 directly opening a .eml message Using Outlook 1
M Opening Word Doc's in Adobe Acrobat Pro Using Outlook 9
L Opening up Contact from an Email - Outlook 2007 Using Outlook 15

Similar threads

Back
Top