


If InStr(1, AttachFile, "xls", vbTextCompare) Then Subject = mainWB.Sheets("Mail").Range("B3").Valueīody = mainWB.Sheets("Mail").Range("B5").ValueĪttachFile = mainWB.Sheets("Mail").Range("B4").Value SendID = mainWB.Sheets("Mail").Range("B1").ValueĬCID = mainWB.Sheets("Mail").Range("B2").Value

Set olMail = otlApp.CreateItem(olMailItem) Set otlApp = CreateObject("Outlook.Application") To understand the complete Code, Read – How to send a simple text mail using MS Excel NOTE: I have used the browse option to make it more real, you can avoid that by directly providing the complete file name as parameter. In this tutorial we will learn How to send the entire Excel Workbook as attachment along with the mail from Microsoft Outlook using Excel VBA. Move it to a new window by selecting at the top right corner.Īrrange the windows so you can see both the message list and your new message side by side.In out earlier post we have seen, How to send a simple text mail using MS Excel. Reply, Forward or create a new email message or calendar event. Select then choose the file you want to insert and select Open. To insert more than one file, hold CTRL (or Command in Mac) while selecting multiple files.ĭrag the corner handles to resize the image or right-click the image to see formatting options. Reply, Forward or create a new email message or calendar event and position the cursor to where you want to add your pictures Inserted images don't need to be downloaded to be seen by the recipient. To add a cloud location such as Box, Dropbox or Google Drive, open your Storage account settings.Īdd or insert pictures to an email in Īttachments always appear above the body of your message, but you can insert pictures inline anywhere in your message. If you want to restrict editing, select More actions in the attachment, then Manage access. When you attach a OneDrive link, all recipients can view or edit the same file.
