P
Paul
Hi,
I'm using Outlook 2003
I've created a custom form for internal communication to mail send to our
shared mailbox. This form is located on our network drive (saved as .oft).
I'm creating a custom (VBA) Userform to call the .oft mailformat via a
commandbutton. For a new e-mail this works great.
What I would like to achieve is a second button that can be clicked for
replying to a message using that same Custom form format. How would I do this
via VBA code.
I can reply to a message but it uses the standard e-mail format instead of
the custom I would like it to, this is the code I have so far;
Dim mynamespace As NameSpace
Dim myforward As MailItem
Dim myfolder
Set mynamespace = Application.GetNamespace("MAPI")
Set myfolder = mynamespace.GetDefaultFolder(6)
Set myforward = GetCurrentItem()
With myforward.Reply
..Display
End With
Any ideas?
Cheers,
Paul
I'm using Outlook 2003
I've created a custom form for internal communication to mail send to our
shared mailbox. This form is located on our network drive (saved as .oft).
I'm creating a custom (VBA) Userform to call the .oft mailformat via a
commandbutton. For a new e-mail this works great.
What I would like to achieve is a second button that can be clicked for
replying to a message using that same Custom form format. How would I do this
via VBA code.
I can reply to a message but it uses the standard e-mail format instead of
the custom I would like it to, this is the code I have so far;
Dim mynamespace As NameSpace
Dim myforward As MailItem
Dim myfolder
Set mynamespace = Application.GetNamespace("MAPI")
Set myfolder = mynamespace.GetDefaultFolder(6)
Set myforward = GetCurrentItem()
With myforward.Reply
..Display
End With
Any ideas?
Cheers,
Paul