View Single Post
 
Old 12-14-2021, 05:29 PM
trevorc trevorc is offline Windows 7 32bit Office 2013
Competent Performer
 
Join Date: Jan 2017
Posts: 173
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default Not using the default email address

Hi All,
I have a strange problem with my email, i use several email accounts and have changed the default one to match my office login details, When i run the code below in uses the wrong email address even though that is not the default.


Code:
        Dim MailOutLook
        Dim olmailItem
        Dim AppOutLook
        Set AppOutLook = CreateObject("Outlook.Application")
        Set MailOutLook = AppOutLook.CreateItem(olmailItem)
        With MailOutLook
            .To = Intersect(acrow, tblColumns("Email Address").Range)
            .Subject = " "
            .Body = "Hi " 
            .Display
        End With
        Exit Sub
    Else
    End If
Reply With Quote