Outlook 용 매크로를 만들 필요가있는 기존 양식이 있습니다. 본사 사무실에 데이터를 제출하는 데 사용되는 양식입니다. 매번 직원 번호, 주소, 성 등을 기입해야합니다 ... 누군가가이 필드를 채우기 위해 매크로를 작성하도록 도와주기 때문에 매번 내 정보를 복사하여 붙여 넣거나 입력 할 필요가 없습니까? 감사!Outlook 2003 양식 매크로
0
A
답변
0
This HTML email creater. Insert this into the "Visual Basic Editor in Tools>Macro then run the
macro "emailpictures". It will ask for validation.
Sub emailpicture()
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
Set objOutlookRecip = objOutlookMsg.Recipients.Add("[email protected]")
objOutlookRecip.Type = olTo
objOutlookMsg.Subject = "Picture"
' add "C:\picture.png as attachment to Outlook message
Set colAttach = objOutlookMsg.Attachments
Set l_Attach = colAttach.Add("C:\path\image.jpg")
' Dereference the attachment objects before changing their properties via CDO
Set colAttach = Nothing
Set l_Attach = Nothing
'Set body format to HTML
objOutlookMsg.BodyFormat = olFormatHTML
objOutlookMsg.HTMLBody = "<HTML><head></head><BODY><center><table><tr><td><center><h1>Title </h1></center></td></tr><tr><td><center><h1>Body</h1></center><br /></td></tr><img src=""image.jpg"" alt=image><br /><br /></td></tr><tr><td><center><h3>Hope you will have a worderous day!</h3></center><br /><br /></td></tr><tr><td><center><h3>From</h3></center><br /><br /></td></tr></table></center></BODY></HTML>"
objOutlookMsg.Send
Set objOutlookRecip = Nothing
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
최종 하위
객체 설정 OutApp = CreateObject를 ("으로 Outlook.Application")으로 객체 희미한 OutMail으로
0
하위 emailfromexcel() 희미한 OutApp 설정 OutMail = OutApp.CreateItem (0) OutMail .TO = "[email protected]" .BCC = thebcc .Subject = "이 제목이" .Body = "이 몸" .Display .Send로
0
Sub emailfromexcel()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = "[email protected]"
.BCC = thebcc
.Subject = "This subject"
.Body = "This body"
.Display
.Send
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
관련 문제
- 1. Outlook 2003 양식 영역
- 2. Outlook 2003 코딩 표준
- 3. Outlook 2003 VSTO 플러그인을로드하십시오.
- 4. Outlook 2003 주소록
- 5. Outlook 2003 추가 기능로드가 중지됩니다.
- 6. Outlook 2010에서 매크로 기록
- 7. Outlook 매크로 실행을위한 트리거
- 8. Outlook 공유받은 편지함 매크로
- 9. Outlook 매크로 공개 저장
- 10. Access 2003 연속 양식
- 11. Outlook VBA Excel 매크로 호출
- 12. 약속의받는 사람을 얻는 Outlook 매크로
- 13. Excel VBA로 Outlook 매크로 열기?
- 14. Outlook 2003 및 Outlook 2007 플러그 - 인 COM 리소스 릴리스
- 15. Outlook 2003 도구 모음 사용자 지정 : 단추 목록 추가/편집
- 16. 전달 규칙을 작성하는 Outlook 2003 VB 스크립트
- 17. VSTO 및 Outlook 2003 컨텍스트 메뉴
- 18. Outlook 2003 추가 기능 게시 및 설치
- 19. VB6 Outlook 2003 클라이언트 응용 프로그램
- 20. PivotCaches.add 오류 5 - 2003 - 2010 매크로
- 21. 엑셀 2003 매크로 편집, 복사하여 삭제
- 22. VS.Net 2003 속성 매크로/변수 만들기
- 23. Outlook VB 매크로 - 내가 뭘 잘못하고 있니?
- 24. VBA 루프 오류에 대한 Outlook 매크로
- 25. 선택한 Outlook 전자 메일을 이동하는 매크로
- 26. 공개 편지함에서 첨부 파일을 저장하는 Outlook 매크로
- 27. 여러 인수가있는 Excel VBA에서 Outlook 매크로 호출
- 28. Outlook 매크로 새 메시지 서식이 없습니다.
- 29. 선택한 텍스트를 취소 할 MS Outlook 매크로
- 30. Outlook 매크로 : 사용자 이니셜 가져 오기
당신이 디자인을 편집 할 수있는 형태가 있다면 하위 = 아무것도 설정 OutApp = 아무것도 끝 설정 OutMail와 엔드 및 기본값에 넣어? – JimmyPena