+ Reply to Thread
Results 1 to 2 of 2

Excel and outlook

Hybrid View

  1. #1
    Registered User
    Join Date
    09-21-2007
    Posts
    15

    Smile Excel and outlook

    Hi All,

    Here is my requirement !

    Is it possible to open a new outlook message from excel..
    if so how can this be done..

    Please help me out in this..

    -Sindhuja

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Code supplied by MindSpring
    Sub Send_Msg()
    Dim objOL As New Outlook.Application
    Dim objMail As MailItem
    Set objOL = New Outlook.Application
    Set objMail = objOL.CreateItem(olMailItem)
    With objMail
        .To = "name@domain.com"
        .Subject = "Automated Mail Response"
        .Body = "This is an automated message from Excel. " & _
            "The cost of the item that you inquired about is: " & _
            Format(Range("A1").Value, "$ #,###.#0") & "."
        .Display
    End With
    Set objMail = Nothing
    Set objOL = Nothing
    End Sub
    Not all forums are the same - seek and you shall find

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1