跳到主要內容

如何通過Outlook從Excel發送當前工作簿?

也許您總是在Excel工作簿中製作和修改報告,完成後,您需要盡快將當前保存的報告發送給部門經理。 您如何在不從Excel打開Outlook的情況下快速將當前的整個工作簿發送給特定的人?

使用“保存並發送”命令從Excel通過Outlook發送當前工作簿

使用VBA代碼通過Outlook從Excel發送當前工作簿作為附件


箭頭藍色右氣泡 使用“保存並發送”命令從Excel通過Outlook發送當前工作簿

有了這個 保存並發送 在Excel中,您可以通過Outlook快速將整個工作簿作為附件,PDF文件,XPS文件或Internet傳真發送。 您可以這樣做:

1。 打開您要發送的工作簿。

2。 點擊 文件 > 保存並發送 > 使用電子郵件發送 在Excel 2010中,請參見屏幕截圖:

文檔發送工作簿1

保養竅門:如果您使用的是Excel 2007,請單擊 辦公按鈕 > 送出,請參見屏幕截圖:

文檔發送工作簿4

在Excel 2013中,請點擊 文件 > 分享到 > 電子郵件,請參見屏幕截圖:

文檔發送工作簿5

3。 然後從中選擇一種要發送Excel的格式 使用電子郵件發送 部分,在這種情況下,我單擊 作為附件發送 圖標按鈕,請參見屏幕截圖:

文檔發送工作簿2

4。 然後會出現一個Outlook編輯窗口,在Cc 文本框,然後在 主題 框,您也可以在“簡介”框中輸入一些消息,請參見屏幕截圖:

文檔發送工作簿3

筆記:

1.僅當使用Outlook作為郵件程序時,此方法才有效。

2.發送工作簿後,您可以轉到Outlook檢查電子郵件是否已成功發送。


箭頭藍色右氣泡 使用VBA代碼通過Outlook從Excel發送當前工作簿作為附件

在這裡,您還可以使用以下VBA代碼將當前工作簿作為附件從Excel發送出去,請執行以下步驟:

1. 打開您要發送的工作簿。

2。 按住 ALT + F11 鍵,然後打開 Microsoft Visual Basic for Applications窗口.

3。 點擊 插入 > 模塊,然後將以下代碼粘貼到 模塊窗口.

VBA代碼:從Excel發送當前工作簿作為附件

Sub SendWorkBook()
'Update 20131209
Dim OutlookApp As Object
Dim OutlookMail As Object
Set OutlookApp = CreateObject("Outlook.Application")
Set OutlookMail = OutlookApp.CreateItem(0)
On Error Resume Next
With OutlookMail
    .To = ""
    .CC = ""
    .BCC = ""
    .Subject = "kte feature"
    .Body = "Hello, please check and read this document, thank you."
    .Attachments.Add Application.ActiveWorkbook.FullName
    .Send
End With
Set OutlookMail = Nothing
Set OutlookApp = Nothing
End Sub

備註:在上面的代碼中,您可以根據自己的需要更改以下信息。

  • .to = ""
  • .CC =“”
  • .BCC =“”
  • .Subject =“ KTE功能”
  • .Body =“您好,請閱讀並閱讀本文檔,謝謝。”

4。 然後點擊 F5 鍵運行此代碼,然後會彈出一個提示框,單擊 ,並且該工作簿已發送出去。

文檔發送工作簿6

筆記:

1.僅當使用Outlook作為郵件程序時,此代碼才可用。

2.發送工作簿後,您可以轉到Outlook以確保已成功發送電子郵件。


相關文章:

如何僅通過Excel從Outlook發送工作表?

如何通過Excel從Outlook發送/通過電子郵件發送單元格範圍?

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I went to the workshop and enjoyed it. I would like a workbook
This comment was minimized by the moderator on the site
I went to the workshop and enjoy it. I would like to get a workbook. Thanks
This comment was minimized by the moderator on the site
Hi,I tried to save the file with VB code but when I share over outlook or some other way the VB code is getting dropped.Kindly could you help me out so that with that excel file that VB code will be available all the time.
Thank you in advance.
This comment was minimized by the moderator on the site
Thanks for sharing, very useful and is there any option to refer the cell in the same file to pick mail ids
This comment was minimized by the moderator on the site
this is attaching the file but the file does not show any changes that were made. it is attaching the last saved version
This comment was minimized by the moderator on the site
Active workbook. Save at beginning of code should sort
This comment was minimized by the moderator on the site
Thanks for sharing Information but i want in workbook a particular One sheet Only as a new sheet
This comment was minimized by the moderator on the site
Is there any way for the formula to copy certain cells and add that info to the body of the email?
This comment was minimized by the moderator on the site
Did I miss the part in method 2 that tells you how to reuse the module? There's no button or other method to recall it upon next use?
This comment was minimized by the moderator on the site
Does it actually save the file?
This comment was minimized by the moderator on the site
Is there a way to configure it to send to a gmail account?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations