Open Outlook 2007 text message window

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

johankotze

Thread Starter
Joined
Apr 16, 2010
Messages
7
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.

code
-----------
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
OutlookMail.Display
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

Top