0
dim objoutlook as object
dim objmail as object
dim rngto as range
dim rngsubject as range
dim rngbody1 as range
set dodata1 = new dataobject
set objoutlook = createobject ("outlook.application")
set objmail = objoutlook.createitem(0)
with activesheet
set rngto = .range("iv8")
set rngsubject = .range ("iv9")
set rngbody1 = .range(.range("a4:i8"), .range("a4").end(xldown))
rngbody1.copy
dodata1.getfromclipboard
end with
with objmail
.to = rngto.value
.subject = rngsubject.value
application.sendkeys ("{tab}")
doevents
application.sendkeys "(%{1068})"
doevents
.display
end with
sendkeys "^({v})", true
with objoutlook = nothing
with objmail = nothing
with rngto = nothing
with rngsubject = nothing
with rngbody1 = nothing
該代碼將Excel單元格粘貼到Outlook電子郵件中。我還希望在將Excel中的數據粘貼到Outlook後添加屏幕截圖。我已經用sendkeys
嘗試過了,但是這會粘貼上一個Excel數據的屏幕截圖。如何在Outlook電子郵件的文本正文後添加屏幕截圖
任何人都可以提出一種方法來添加電子郵件正文下面的截圖。