• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to avoid repeated background in outlook using vba.

Nitesh Khot

Member
Hi..

Below code works fine..but unable to prevent from repeating image in outlook..is there any way to sort out this issue..

Code:
sub mail()
Dim olApp As Outlook.Application
    Dim olMail As MailItem
    Set olApp = New Outlook.Application
    Set olMail = olApp.CreateItem(olMailItem)
    With olMail
        .BCC = Recip
        .Subject = "Welcome!"
       
MyHTML ="<body background=""C:\Users\nikh\Desktop\Untitled.jpg""; center top no-repeat;"
       
        .HTMLBody = MyHTML & "Welcome Customer,"
        .Display
    End With
    End If
    Set olMail = Nothing
    Set olApp = Nothing
           
End Sub

Thanks in Advance....
Nikh
 
Back
Top