Results 1 to 2 of 2

Thread: outlook automation help please

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    103

    Talking

    i need to press a button within my application that opens up outlook and populates the email address:,subject,and a standard letter with the information that i have within my VB application

    so all i need to do with outlook is manually click on the send button i have never done automation before im still learning i greatly except all ideas
    thanx
    john

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    For the following example, add 3 textboxes and a command button. In the command button add the following:

    Code:
    Set out = CreateObject("outlook.application")
    Set myitem = out.CreateItem(0)
    myitem.Recipients.Add Text1.Text
    myitem.Subject = Text2.Text
    myitem.Body = Text3.Text
    myitem.Display
    If you need anything else, please let me know.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

Posting Permissions

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



Click Here to Expand Forum to Full Width