Results 1 to 2 of 2

Thread: Highlighting text in Outlook 'CC:' box

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    4

    Unhappy Highlighting text in Outlook 'CC:' box

    I'm fairly new to all this so please bear with me.
    My vba application creates an e-mail at the end using the Outlook object.
    This works fine, however I've trying to think of way to highlight text in the 'CC:' box when the e-mail opens so that the user will manually enter an address there.
    Here's my code snippet at present:

    VB Code:
    1. Private Sub CommandButton1_Click()
    2.     Set myOlapp = CreateObject("Outlook.Application")
    3.     Set myitem = myOlapp.CreateItem(olMailItem)
    4.     Set myattachments = myitem.Attachments
    5.     Set myRecipientAdmin = myitem.Recipients.Add("ADD_OTHER_PEOPLE_HERE")
    6.     myRecipientAdmin.Type = olCC
    7.     Set myRecipientMain = myitem.Recipients.Add("Mr Brown;Mr Black;Mr White")
    8.     myRecipientMain.Type = olTo
    9.     myattachments.Add CorrectFileNameandPath, olByValue, 1
    10.     myitem.Subject = ReportFileName
    11.     myitem.Display
    12.     Me.Hide
    13.     FinishOff.Show
    14. End Sub


    I want the text 'ADD_OTHER_PEOPLE_HERE' highlighted so it stands out.

    Any ideas ?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Highlighting text in Outlook 'CC:' box

    VBA question moved to Office Development.

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