A
albycindy
What is wrong with this code? I can see Outlook trying to do something in my
Start Bar but then nothing happens!!!!
Private Sub CommandButton1_Click()
Dim Document As Word.Document
Set Document = ActiveDocument
Dim Olk As Outlook.Application
Set Olk = CreateObject("Outlook.Application")
Dim OlkMsg As Outlook.MailItem
Set OlkMsg = Olk.CreateItem(olMailItem)
With OlkMsg
.To = "Cindy Van Dongen"
.Subject = "Request for Claim"
.Body = "Change this text!"
.Attachments = ActiveDocument
End With
End Sub
Start Bar but then nothing happens!!!!
Private Sub CommandButton1_Click()
Dim Document As Word.Document
Set Document = ActiveDocument
Dim Olk As Outlook.Application
Set Olk = CreateObject("Outlook.Application")
Dim OlkMsg As Outlook.MailItem
Set OlkMsg = Olk.CreateItem(olMailItem)
With OlkMsg
.To = "Cindy Van Dongen"
.Subject = "Request for Claim"
.Body = "Change this text!"
.Attachments = ActiveDocument
End With
End Sub