- ©«¤l
- 216
- ¥DÃD
- 71
- ºëµØ
- 0
- ¿n¤À
- 292
- ÂI¦W
- 0
- §@·~¨t²Î
- window xp
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-6-27
- ³Ì«áµn¿ý
- 2024-9-28
|
[µo°Ý] 1¬¡¶Ã¯¤º¥HSHEET¦WºÙ°t¹ï¹q¶l¦a§}
¤j¤j, ¤U¦C¬O¤@Ó¥i¥Hµo°e¹q¶lªþ¥óªºµ{¦¡, ·Q¥[¤J¤@ÓWORKSHEETS("EMAIL"), ¤ºAÄæ¬OSHEET NAME, BÄæ¬O¹q¶l¦a§}, ¦pªGSHEET NAME = AÄ椺SHEET NAME, «h¤U¦CTO ªºEMAIL ADDRESS¨úBÄæ, ¦ý¦³¦h±iSHEETS :,- Sub saveoneshop_email_3()
- Dim xPath As String
- Dim F As String
- Dim Sheetname As String
- Dim savesheet As Object
- Application.ScreenUpdating = False
- Application.DisplayAlerts = False
- xPath = Application.ActiveWorkbook.Path
- F = InputBox
- If F = "" Then Exit Sub
- Sheetname = InputBox
- If Sheetname = "" Then Exit Sub
- Set savesheet = ActiveWorkbook.Worksheets(Sheetname)
- savesheet.Copy
- Set savesheet = ActiveWorkbook
- savesheet.SaveAs Filename:=xPath & "\" & Sheetname & "_" & F & ".xlsx"
-
- Dim Mail_Object, Mail_Single As Variant
- Dim contact As String
- contact = "[email protected]"
- Email_Subject = Sheetname & "_" & F & "ªí"
- Email_Cc = ""
- Email_Bcc = ""
- Email_Body = "XX"
- Set Mail_Object = CreateObject("Outlook.Application")
- Set Mail_Single = Mail_Object.CreateItem(o)
- With Mail_Single
- .Subject = Email_Subject
- .To = Email_Send_To
- .CC = Email_Cc
- .BCC = Email_Bcc
- .Body = Email_Body
- .Attachments.Add (xPath & "\" & Sheetname & "_" & F & ".xlsx")
- .Display
- '.send
- End With
- savesheet.Close
- Application.DisplayAlerts = True
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|