1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Open Outlook 2007 text message window

Discussion in 'Software Development' started by johankotze, Apr 16, 2010.

Thread Status:
Not open for further replies.
  1. johankotze

    johankotze Thread Starter

    Apr 16, 2010
    I do not know if this is the correct forum to ask this question. I have a MS Access Application. I have a form called frmTextMessages on that form is a SMS button. What I want is when that button is clicked that Outlook 2007 text message window must open. I can do it already with email window. The code I use to open the Outlook 2007 email window is as follow.

    Private Sub cmdSend_Click()
    'Set the Outlook controls to create a new message
    Set OutlookApp = CreateObject("Outlook.Application")
    Set OutlookMail = OutlookApp.CreateItem(0)

    'Set the FROM field
    OutlookMail.SentOnBehalfOfName = strFrom

    'Set the TO field
    OutlookMail.To = strTo

    'Set the CC field
    OutlookMail.CC = strCCAddress

    'Set the SUBJECT field
    OutlookMail.Subject = strSubject

    'Set the BODY field
    OutlookMail.HTMLBody = strBody
    'Show the message to the user
    End Sub
    How can I change this code to open Outlook 2007 text message window. The text message option is found under New when you open Outlook 2007.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/917219

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice