PC Review


Reply
Thread Tools Rate Thread

Confused by e-mail order.

 
 
MarkV
Guest
Posts: n/a
 
      5th May 2008
I'm baffled. The following code gives me everything on the e-mail that I want; attachments, designated signature. But the signature is on top, followed by the attachments, followed by the body. Does anybody know why this might be? One solution I've been working on is trying to retrieve a signature as a string and include it in HTMLBody which will put the attachments on their own line. Any help would be greatly appreciated.

Dim appOutLook As Object
Dim MailOutLook As Object
Set appOutLook = New Outlook.Application
Set MailOutLook = appOutLook.CreateItem(olMailItem)

MailOutLook.Subject = "Topic"
MailOutLook.Body = "Test"
MailOutLook.Attachments.Add ("C:\file.xls")
MailOutLook.Attachments.Add ("C:\file2.xls")
MailOutLook.To = "people"

'MailOutLook.Cc = copyto
MailOutLook.Display

Set inspect1 = MailOutLook.GetInspector
inspect1.CommandBars.ActiveMenuBar.Controls("Insert").Controls( "Signature").Controls("Sig1").Execute

 
Reply With Quote
 
 
 
 
Brian Tillman
Guest
Posts: n/a
 
      5th May 2008
MarkV <(E-Mail Removed)> wrote:

> I'm baffled. The following code gives me everything on the e-mail
> that I want; attachments, designated signature.


Code questions belong in microsoft.public.outlook.program_vba or
microsoft.public.outlook.program_addins

 
Reply With Quote
 
MarkV
Guest
Posts: n/a
 
      5th May 2008
Test
 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      5th May 2008
MarkV <(E-Mail Removed)> wrote:

> Test


Wrong newsgroup for test messages.
--
Brian Tillman [MVP-Outlook]
 
Reply With Quote
 
MarkV
Guest
Posts: n/a
 
      6th May 2008
Thanks for the help, dickhead.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name order in Contact list different from name order when sending mail resonator80 Microsoft Outlook Discussion 2 8th Feb 2007 06:34 PM
Confused about databinding and event order Larry Bud Microsoft ASP .NET 1 2nd Jan 2007 07:12 PM
Confused on disc order (long) Lorenzo `paulatz' Paulatto Windows XP Embedded 3 15th Oct 2006 09:21 PM
Events / ViewState Order etc Still Confused mosscliffe Microsoft ASP .NET 0 20th Jun 2006 11:57 AM
RULES - Confused about firing order?? MEI Microsoft Outlook 1 22nd Mar 2004 06:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 AM.