¥ÎExcel¾ã§å±H¹q¤l¶l¥ó(Email)
- ©«¤l
- 438
- ¥DÃD
- 67
- ºëµØ
- 0
- ¿n¤À
- 531
- ÂI¦W
- 30
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-10-30
- ³Ì«áµn¿ý
- 2024-10-24
|
¥ÎExcel¾ã§å±H¹q¤l¶l¥ó(Email)
Private Sub cmdSendMail_Click()
Dim objCdo As Object
'Dim objCdo As CDO.Message
strCfg = "http://schemas.microsoft.com/cdo/configuration/"
'Set objCdo = New CDO.Message
Set objCdo = CreateObject("CDO.Message")
i = 2
With objCdo
.From = Sheet1.Range("from")
.Fields("urn:schemas:mailheader:X-Priority") = 1 ' Priority = PriorityUrgent °ªÀu¥ý¶¶§Ç
.Configuration(strCfg & "sendusing") = 2 ' Sendusing = SendUsingPort
.Configuration(strCfg & "smtpserver") = Sheet1.Range("smtp") ' SMTP Server
.BodyPart.Charset = "utf-8" '¨Ï¥Î½s½X¤è¦¡
End With
If Sheet1.Range("username") <> "" Then
' SMTP Server ¦p»Ýµn¿ý , «h»Ý³]©w UserName / Password
objCdo.Configuration(strCfg & "sendusername") = Sheet1.Range("username")
objCdo.Configuration(strCfg & "sendpassword") = Sheet1.Range("password")
End If
objCdo.Configuration.Fields.Update ' §ó·s (Äæ¦ì) ²ÕºA
While Sheet2.Range("A" & i) <> ""
objCdo.To = Sheet2.Range("A" & i)
objCdo.CC = Sheet2.Range("B" & i)
objCdo.BCC = Sheet2.Range("c" & i)
objCdo.Subject = Sheet2.Range("d" & i)
If Sheet2.Range("A" & i) = "([email protected])" Then
MsgBox
Exit Sub
End If |
|
|
|
|
|
|
- ©«¤l
- 124
- ¥DÃD
- 43
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW¥x¥_
- µù¥U®É¶¡
- 2011-3-16
- ³Ì«áµn¿ý
- 2021-10-7
|
¦^´_ 1# 198188
«e½ú¥¦w
«Ü¦³½ìªº§Þ¥©
³oÓ§Þ¥©¦p¦ó¨Ï¥Î ? |
|
µL¤îºÉªº§V¤O¤W¶i
|
|
|
|
|