shetty2san
New Member
- Joined
- Jun 29, 2020
- Messages
- 2
- Office Version
- 2007
- Platform
- Windows
Hi,
I want to copy and paste the columns value to outlook mail from same excel sheet,
OS : Windows-8
Outlook : Outlook2016
Below are code i have and request you to help for other part.
Private Sub Button50_Click()
On Error GoTo ErrHandler
' SET Outlook APPLICATION OBJECT.
Dim objOutlook As Object
Dim xInspect As Object
Dim pageEditor As Object
Dim objEmail As Object
Dim report As Worksheet
Set objOutlook = CreateObject("Outlook.Application")
' CREATE EMAIL OBJECT.
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = ""
.CC = ""
.Subject = "Values"
.body = "Dear Team" & vbNewLine & vbNewLine & "Pls find the values" & vbNewLine & vbNewLine
.display ' DISPLAY MESSAGE
.display
.send
End With
' CLEAR.
'Set objEmail = Nothing: Set objOutlook = Nothing: Set pageEditor = Nothing:
ErrHandler:
End Sub
I want to copy and paste the columns value to outlook mail from same excel sheet,
OS : Windows-8
Outlook : Outlook2016
Below are code i have and request you to help for other part.
Private Sub Button50_Click()
On Error GoTo ErrHandler
' SET Outlook APPLICATION OBJECT.
Dim objOutlook As Object
Dim xInspect As Object
Dim pageEditor As Object
Dim objEmail As Object
Dim report As Worksheet
Set objOutlook = CreateObject("Outlook.Application")
' CREATE EMAIL OBJECT.
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = ""
.CC = ""
.Subject = "Values"
.body = "Dear Team" & vbNewLine & vbNewLine & "Pls find the values" & vbNewLine & vbNewLine
.display ' DISPLAY MESSAGE
.display
.send
End With
' CLEAR.
'Set objEmail = Nothing: Set objOutlook = Nothing: Set pageEditor = Nothing:
ErrHandler:
End Sub