+ Reply to Thread
Results 1 to 2 of 2

Image object into an email

  1. #1
    Registered User
    Join Date
    11-18-2023
    Location
    Stoke, England
    MS-Off Ver
    Office16
    Posts
    1

    Image object into an email

    I'm trying to add an image into an email in vba. I've inserted the image into a sheet as I couldn't get the file location method to work.

    Here's my code for the relevant section in the email body:

    EmailBody = HelperSheet.Shapes.Range(Array("Picture 2"))

    It's highlighting the whole row and saying Object required but I'm not sure what exactly it means (I'm really new to vba).

    Does anybody know what I'm doing wrong?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Image object into an email

    Normally, I do not respond to posts that do not contain a sample workbook. I will leave you with these. These are two modules. It is up to you to write the code to feed the appropriate parameters to the Mailer subroutine.

    The arguments are explained in the comments of the ModMailerMain module.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Email Macro paste image in to email and sent to list in designated range Outlook
    By aaron061883 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2020, 10:51 AM
  2. Need to send email with image in the body of the email
    By rvr ramana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2019, 01:53 PM
  3. [SOLVED] Select cell having object/image NOT image/object
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2015, 10:30 PM
  4. Replies: 1
    Last Post: 08-13-2014, 06:25 AM
  5. [SOLVED] VBA to send embedded image in email body- NOT USING THE ORGINAL IMAGE SOURCE
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-27-2013, 06:48 PM
  6. replace image object with another image
    By MKKEXCEL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2012, 03:56 PM
  7. [SOLVED] Add an Image Object...
    By Harish Shinde in forum Excel General
    Replies: 0
    Last Post: 07-19-2006, 10:10 AM

Tags for this Thread

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