Dear Experts , 

 

I need help with the below code.

 

This code emails the current active file as an attachment while also
copying a specific range of cells from the sheet. It works fine except that it
removes the user signature. 
I want to pick the user signature. 

 

Sub sumit()

Dim outapp As Object

Dim outmail As Object

Set outapp = CreateObject("outlook.application")

Set outmail = outapp.CreateItem(0)

On Error Resume Next

With outmail

Set doc =
outmail.getinspector.WordEditor

Body = ActiveSheet.Range("f10:n31").Value

    .To =
"[email protected]"

         .CC = " "

    .Subject = ActiveWorkbook.Name

   
ActiveSheet.Range("f10:n31").Copy

    Set WrdRng = doc.Range

    .display

    WrdRng.Paste

    .display 'or use.send

End With

On Error GoTo 0

Set outmail = Nothing

Set outapp = Nothing

MsgBox ("you Mail has been sent to " & SendID)

End Sub





Thanks and Regards,
Gargee Singh
 
                                          

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to