- ©«¤l
- 62
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 109
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10®a¥Îª©
- ³nÅ骩¥»
- Office 2013
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ·s¥_
- µù¥U®É¶¡
- 2016-1-27
- ³Ì«áµn¿ý
- 2024-8-12
|
[µo°Ý] Àx¦s®æ½d³ò½Æ»s&¥t¦s¦¨TIFÀÉ
½Ð±Ð¦U¦ì¤j¤j¡G
·Q¦bexcelªí®æAJ4Äæ¦ìÂùÀ»·Æ¹««á¡A
±NM2:V27³oÓ½d³ò½Æ»s¦¨tifÀÉ(Àx¦s©ó®à±)¡A
¦A¶}±Òoutlookµ{¦¡·s¶l¥ó«á
1.±N®à±ªºtifÀÉ¥[¤Jªþ¥ó¤¤
2.¦A¥t¥~½Æ»sM2:V27½d³ò¦¨¹Ï¤ù¡A¶K¦b¶l¥ó¤º¤å¤¤
¥Ø«e¦³°ÝÀY¦p¤U¡G
1.M2:V27³oÓ½d³ò½Æ»s¦¨tifÀÉ¡AÀx¦s¨ì®à±«á¡AÀɮ׬OªÅȵL¸ê®Æ¡C
¦]¦ÑÁón¨D¡AÀÉ®×¥²¶·¬°tifÀÉ
2.½Æ»sM2:V27½d³ò¦¨¹Ï¤ù¡A¶K¦b¶l¥ó¤º¤å¤¤¡G
¦³¦b°Å¶Kï¡A¦ý¬O·s¶l¥ó®É¡A¤£·|¥X²{¦b¤º¤å¡An¦Û¤v¤â°Ê¦A«ö¶K¤W¤~¦³....
½Ð°Ý¥H¤Wµ{¦¡½X¸Ó¦p¦ó×¥¿¡H
·PÁ¦U¦ì¤j¤j~~~~- Sub Mail_Range()
- Dim Source As Range
- Dim temp As Object, newmail As Object, strg As String
-
- Set Source = Nothing
- On Error Resume Next
-
- '·s¼Wµ{¦¡½X¶}©l¡A§@¥Î¤¤Àx¦s®æ°±¦bþÓ³¡ªù§O¡A´N³]©w¬°Source
-
- If ActiveCell.Address = Cells(4, 14).Address Then
- Set Source = Range("M2:V27").SpecialCells(xlCellTypeVisible)
- ElseIf ActiveCell.Address = Cells(4, 36).Address Then
- Set Source = Range("AI2:AR27").SpecialCells(xlCellTypeVisible)
-
- Source.Copy
-
- Source.CopyPicture
- With ActiveSheet.ChartObjects.Add(1, 1, Source.Width, Source.Height) '·s¼W¹Ïªí
- .Chart.Paste '¶K¤W¹Ï¤ù
- .Chart.Export Filename:="C:\Users\paz\Desktop\" & "Paz " & "Salary " & Range("B3") & "-" & Range("D3") & ".tif" '¶×¥X¹Ï¤ù
-
- .Delete '§R°£¹Ïªí
- End With
-
- Set temp = CreateObject("outlook.application")
- Set newmail = temp.CreateItem(0) '¨Ï¥Îoutlook?«Ø·s?¥ó
- With newmail
- .To = "[email protected]" '¦¬¥ó¤H
- .CC = "" '§Û°e¤H
- .Subject = "Salary " & Range("B3") & "-" & Range("D3") '?¥ó??
- .Body = Selection.PasteSpecial
- .Attachments.Add "C:\Users\paz\Desktop\" & "Paz " & "Salary " & Range("B3") & "-" & Range("D3") & ".tif" '²K¥[ªþ¥ó
- .Display
- '.Send
- End With
- Else
-
- End If
- End Sub
½Æ»s¥N½X
|
|