How can i copy the range AG1 to the last available row and copy it to the body of an outlook message??
Thanks and see attached.
Brandon
How can i copy the range AG1 to the last available row and copy it to the body of an outlook message??
Thanks and see attached.
Brandon
Pasting Cells themselves into an Outlook message is actually a lot more involved than you'd think. You can check out this link as a reference to get you started, but alternatively, if you didn't need the formatting you could probably just paste the values into the body fairly simply.
http://www.office-loesung.de/ftopic380280_0_0_asc.php
Here is the relevant code, again, taken from user Nepumuk over at office-loesung.de:
Please Login or Register to view this content.
Want to show appreciation for the help you received from a member? Give them reps by clicking the bottom left of their post!
There has to be a less complex way than this... no?
Not that I've seen. The issue is copying a range has to include HTML markup as the standard VBA method only uses text strings. Including anything other than text requires converting whatever you want to paste into HTML first, before including it in the body. Like I said, if you just want the values, then that's easier. It's the formatting that makes it tricky.
What about just to copy the values instead of to HTML? I.e. copying a range with values?
Something like this should get you close (untested):
Please Login or Register to view this content.
Here is shorter version of sending a Range as HTML in the body of an email.
Send Range in Body of an Email
Example of Using the MacroPlease Login or Register to view this content.
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks