Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2018, 11:20 PM
kevinbradley57 kevinbradley57 is offline Copy UsedRange into body of new Outlook email Windows 7 64bit Copy UsedRange into body of new Outlook email Office 2010 64bit
Advanced Beginner
Copy UsedRange into body of new Outlook email
 
Join Date: Jul 2017
Posts: 84
kevinbradley57 is on a distinguished road
Default Copy UsedRange into body of new Outlook email

I need VBA that will copy the UsedRange of a worksheet into the body of a new Outlook email, preceding with multiple lines of introductory text as shown below. Thank you!

This report captures all audits in the reporting phase or with a planned report date in the next 30 days.


Data for this report is pulled as of 8:30 each morning.


Updating Archer
Status Comments: Begin each status comment with the date followed by a colon. Example: "5/10/18: 2 potential audit issues could lead to IN rating."
Reply With Quote
  #2  
Old 04-14-2018, 06:26 AM
NoSparks NoSparks is offline Copy UsedRange into body of new Outlook email Windows 7 64bit Copy UsedRange into body of new Outlook email Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Ron de Bruin has the go to site for things like this
https://www.rondebruin.nl/win/s1/outlook/bmail2.htm

If you have issues after that, post the code you're using and we'll help troubleshoot it.
Reply With Quote
  #3  
Old 04-14-2018, 08:21 PM
BobBridges's Avatar
BobBridges BobBridges is offline Copy UsedRange into body of new Outlook email Windows 7 64bit Copy UsedRange into body of new Outlook email Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I didn't look at the site NoSparks suggested; I'm just bored tonight and thought I'd tackle a few of these. But if this task is for your own use, not for others, then you might be satisfied with a quickie that I use myself for a very similar activity. I have an Excel program that fills in a sort of time sheet for my employer; then it cuts a portion of the worksheet to the clipboard, opens and prepares an email (mostly the recipients' addresses and the email account to be used), and then stops. The cursor is at the top of the email; all I have to do is hit the Paste button to put the report into the email. Theoretically I could have the program do the paste, too, but that would require finding the right spot in the HTML code; for this once-a-week task I took the easy way out and just hit <Shift-Ins> at run time.

That doesn't insert the standard text you want, but it's a start. Interested?
Reply With Quote
  #4  
Old 04-16-2018, 03:23 PM
kevinbradley57 kevinbradley57 is offline Copy UsedRange into body of new Outlook email Windows 7 64bit Copy UsedRange into body of new Outlook email Office 2010 64bit
Advanced Beginner
Copy UsedRange into body of new Outlook email
 
Join Date: Jul 2017
Posts: 84
kevinbradley57 is on a distinguished road
Default

Thanks, NoSparks. I found enough to get started.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer Outlook TextBox Text Into Email Body cdc99999 Outlook 11 05-26-2017 07:28 AM
Copy UsedRange into body of new Outlook email move email based on text in email body megatronixs Outlook 3 02-10-2015 10:58 AM
add hyperlink in body of Outlook email ChuckDrago Word 0 06-27-2013 01:13 PM
Outlook not sending body of email sbertram Outlook 0 08-30-2012 11:50 AM
Copy UsedRange into body of new Outlook email copy email into Outlook pkrigger Outlook 2 01-20-2011 08:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft