Reply / forward with a custom form.

Status
Not open for further replies.
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
 
This is a complicated scenario. You would have to use the same

CreateItemFromTemplate technique to create the new message from the template

*and* also call Reply to create a new reply message, copy all property

values from the reply message to the newly created message, and then call

Recipients.Add as many times as needed to copy all the recipients. I can't

imagine an .oft template that would have so much functionality to justify

that amount of work.

Sue Mosher

"Paul" <Paul> wrote in message

news:64C2BAC5-C2DE-4292-8E91-35EA9675B399@microsoft.com...
> 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Outlook 2016 Macro to Reply, ReplyAll, or Forward(but with composing new email) Outlook VBA and Custom Forms 0
C UDFs Reply vs Forward Outlook VBA and Custom Forms 3
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
K add pdf to every reply or forward Outlook VBA and Custom Forms 1
S Reply & Forward Date in original message incorrect Using Outlook 2
A Reply/Forward Emails using Mail Merge BCM (Business Contact Manager) 0
J How to Reply or Forward a message and Archive it in same step? Using Outlook 0
S Outlook 2k/2k3 Reply or Forward: Signature image replaced by original sender Using Outlook 3
R OL2010; How to ALWAYS Reply/Forward using HTML? Using Outlook 1
A Outlook 2010 - Want to Have All Email Reply Forward as Rich Test Using Outlook 7
K Reply or forward - some e-mails do not display correctly Using Outlook 3
S Outlook 2003 Prefix on reply and forward Using Outlook 1
D Reply/Forward emails go into the Inbox and not to the Sent box. Using Outlook 5
T Re: Form on Reply or Forward Outlook VBA and Custom Forms 7
R Reply,forward error Outlook VBA and Custom Forms 3
S do Reply, Reply to All, Forward programmatically Outlook VBA and Custom Forms 2
N Reply to Outlook messages by moving messages to a specific Outlook folder Outlook VBA and Custom Forms 1
J Macro to Reply to Emails w/ Template Outlook VBA and Custom Forms 3
J Quick steps delete original email and move reply/sent email to folder Using Outlook 2
nmanikrishnan Auto-reply from default account Using Outlook 1
P Automatic Greeting "Hello Name," when Reply All is clicked Outlook VBA and Custom Forms 1
N Line to move origEmail to subfolder within a reply macro Outlook VBA and Custom Forms 0
S How to find emails that I sent that have not received a reply? Using Outlook 7
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
A Is there an ID field you can use to pair a reply to the sent email? Outlook VBA and Custom Forms 4
W Reply to email Using Outlook 4
A Edit attachment Save and Reply Outlook VBA and Custom Forms 0
L Macro/VBA to Reply All, with the original attachments Outlook VBA and Custom Forms 2
S Outlook Macro to move reply mail based on the key word in the subjectline Outlook VBA and Custom Forms 0
diver864 vba for a rule to automatically accept meeting requests with 'vacation' in subject, change to all-day event, change to free, don't send reply Outlook VBA and Custom Forms 1
B Adding signature to bottom of VBA reply email Outlook VBA and Custom Forms 1
ThinkToday Calculate reply time of outlook mail Using Outlook 1
W Replyin to the reply-to email address Outlook VBA and Custom Forms 0
D Reply with a template loose the sender's embedded image Outlook VBA and Custom Forms 0
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
J Outlook Reply > From > Other Email Address... > Address Not Showing in Sent Items... From Email Outlook VBA and Custom Forms 0
M Delete headers in Inline reply Outlook VBA and Custom Forms 5
E reply Using Outlook 0
Healy Consultants Macro to remove inside organization distribution list email address when reply to all recepients Outlook VBA and Custom Forms 0
B resend if no reply and send an automatic reminder Outlook VBA and Custom Forms 0
evdbogaard Reply with only last message cited Using Outlook 1
B Reply and replyall macro is not working Outlook VBA and Custom Forms 1
mctabish Setting "Reply To" based on inbox Outlook VBA and Custom Forms 2
Rupert Dragwater Deleted email address keeps showing up in reply Using Outlook 12
B When working on emails in a certain folder, when I hit reply or reply all, I would like it re always reply all and add an email address to send to Outlook VBA and Custom Forms 3
R How Do I insert images in and Auto Reply Using Outlook 3
M Reply Inline With a Outlook Template Outlook VBA and Custom Forms 6
broadbander Needing help with reply/reply all while keeping attachments and adding a new CC recipient. Outlook VBA and Custom Forms 5
O On click,I want to change subject line of selected mail and then reply to particular email and move Using Outlook 3
J VBA Run When Reply Outlook VBA and Custom Forms 4

Similar threads

Back
Top