- 帖子
- 45
- 主題
- 15
- 精華
- 0
- 積分
- 73
- 點名
- 0
- 作業系統
- windows 7
- 軟體版本
- office 2010
- 閱讀權限
- 20
- 註冊時間
- 2015-12-13
- 最後登錄
- 2024-7-17

|
2#
發表於 2019-5-12 21:45
| 只看該作者
Sub Mail_workbook_Outlook_1()
'Working in Excel 2000-2016
'This example send the last saved version of the Activeworkbook
'For Tips see: http://www.rondebruin.nl/win/winmail/Outlook/tips.htm
Dim rgExp As Range
ActiveSheet.Range("輸出報表!A1:V4001").AutoFilter Field:=22, Criteria1:="<>"
Set rgExp = Range("a1", ActiveSheet.Range("v65536").End(xlUp))
''' Copy range as picture onto Clipboard
rgExp.CopyPicture Appearance:=xlScreen, Format:=xlPrinter
''' Create an empty chart with exact size of range copied
With ActiveSheet.ChartObjects.Add(Left:=rgExp.Left, Top:=rgExp.Top, _
Width:=rgExp.Width, Height:=rgExp.Height)
.Name = "myChart"
改寫成功,但是還不能 指定 哪個工作簿 T_T |
|