+ Reply to Thread
Results 1 to 6 of 6

VBA Code to Paste copied range as a picture

  1. #1
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    VBA Code to Paste copied range as a picture

    Good afternoon,

    Im trying to create a code that will copy the contents in a range to outlook and then email the relevant parties, i have managed to achieve this but when the contents copy and paste the information into outlook its all over the place so i would like to amend this code to paste the contents as a Paste Special picture. Could anyone help me with this?

    Yours gratefully, DJ

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: VBA Code to Paste copied range as a picture

    Ron deBruin has an excellent set of examples on code for sending mail from excel check this out:
    http://www.rondebruin.nl/sendmail.htm

  3. #3
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Re: VBA Code to Paste copied range as a picture

    Ive seen the link above before but i dont know where i need to place the extra bit of code im my current query, that what i would like some help for. Thank you

  4. #4
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: VBA Code to Paste copied range as a picture

    The method you are using will always send an excel sheet, what you need is the code below. Test it and if it works please add some reputation by clicking the * below.
    Please note this is a modified version of the code by DeBruin as I mentioned in my previous post.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    NV, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: VBA Code to Paste copied range as a picture

    I am after the same thing. I want VBA to copy a range in excel and paste it into an outlook email as a picture, not a table. It would be the equivalent of selecting a range in excel, Ctrl+C, then opening an outlook email, right clicking in the body, then under Paste Options clicking the Paste Picture icon (looks like a mountain range with a sun in the top right).

    RaulRodriquez, your code (using both Sxbody and rng) accomplishes the same result as Ron deBruin's code, which I've been using for months now as my code's basis, but I want to have the picture pasted now; your code ends up with a pasted table of the original range in the outlook email.

    Now get it to paste a picture of the range, and that would be just perfect!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA Code to Paste copied range as a picture

    plandi,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1