+ Reply to Thread
Results 1 to 6 of 6

Image disappears after insertion to excel.

  1. #1
    Registered User
    Join Date
    09-25-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    3

    Image disappears after insertion to excel.

    Dears,

    I would like to ask you for help. I have a macro for cropping, resizing and inserting image to the cell. Nevertheless, the images are somehow connected with the cells and when I want to send the sheet by email or move the images in my local, all added images are disappeared.

    My macro is able to see below.

    Please Login or Register  to view this content.
    Thank you for support.
    Last edited by vodicto1; 09-26-2019 at 01:12 AM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Image disappears after insertion to excel.

    Instead of picture insert use add:

    Please Login or Register  to view this content.
    This part:


    Please Login or Register  to view this content.
    not tested but should works.

    p.s. could you edit your post and wrap vba code into CODE (# icon) tag, please?
    Last edited by KOKOSEK; 09-25-2019 at 09:55 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    09-25-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    3

    Re: Image disappears after insertion to excel.

    Dear KOKOSEK,

    Code is not working properly. When I run the script I am able to choose the image what I want to add, however, error occur due to line
    Please Login or Register  to view this content.
    Object does not support this property or method.

    If the PrintObject is deleted, image is not added anyway, nevertheless, the script works without any error.

    Could you double check it, please?

    Thank you very much for strong support.

    Regards

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Image disappears after insertion to excel.

    This definitely insert picture. I've add some lines from your code, please add the rest (crop section):

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-25-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    3

    Re: Image disappears after insertion to excel.

    Dear KOKOSEK,

    It works properly. Thank you very much! I appreciate. You can close this topic.

    For future tracking of similar issue I am adding full working script for image cropping, resizing and inserting to the specify cell.

    Please Login or Register  to view this content.
    Best Regards

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Image disappears after insertion to excel.

    Happy to help.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Insert Image With Image Filename In Another Cell - Excel
    By Angelq117 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2016, 09:38 AM
  2. EXCEL, VBA, Image: Image loses transparency after saving woorkbook
    By lhasha in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-19-2016, 11:13 PM
  3. Automatic insertion of an image from its filename
    By Renaud22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2015, 11:00 AM
  4. [SOLVED] How to apply Image borders to an image that my excel vba userform pastes in a word doc?
    By CaptainCool in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2014, 05:40 PM
  5. VBA: Put text from excel to jpeg image by matching image name.
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 01:47 AM
  6. excel image insertion with name
    By sarvesh_24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2013, 10:43 PM
  7. excel 2010 VBA InsertPicInRange only makes shortcut to image instead of copy of image
    By ArjanSpit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2012, 02:57 PM

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