+ Reply to Thread
Results 1 to 8 of 8

Images Show On Excel Desktop But Not Excel Online

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Images Show On Excel Desktop But Not Excel Online

    This is a macro Ive been using to generate an image from a URL in a row's cell. The image is fitted to the first cell in the table. It's been working well however when I try to open the sheet in excel online, the images show as a small white box with a red x in them.
    Screen Shot 2017-05-25 at 2.25.02 AM.png

    If I go into the sheet and insert the image from a desktop image file they show up in excel online. Wondering how I can fix this so they appear in excel online.


    Please Login or Register  to view this content.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Images Show On Excel Desktop But Not Excel Online

    My VBA sucks, but if the pic is stored on your PC, maybe the online version cant see/find it?

    Also, Please update your profile as necessary to properly reflect the your general location (country). Members tailor answers based on your regional settings, and "my house" just doesnt do it for that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Images Show On Excel Desktop But Not Excel Online

    its excel online
    you cant insert image on excel online
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Images Show On Excel Desktop But Not Excel Online

    Quote Originally Posted by humdingaling View Post
    its excel online
    you cant insert image on excel online
    Well that would explain it then LOL

  5. #5
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Images Show On Excel Desktop But Not Excel Online

    Quote Originally Posted by humdingaling View Post
    its excel online
    you cant insert image on excel online
    This is not accurate. I was able to insert an image that shows on excel online. Scenario is if I open an excel sheet in Desktop excel, and then click insert image and select the file from my hard drive, it works on any computer I open that excel online sheet .
    Proof: Screen Shot 2017-05-25 at 10.29.24 AM.png

    However if I insert the images using the code I listed above, the images only show on the Desktop version of excel and not the online version. This code doesn't pull images from the hard drive like the method I used to get the image to show up. The code takes a URL from a cell on the sheet and then converts it to the actual image on the sheet.

    I was hoping someone could look at that code and identify a way to emulate the uploading of an image.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Images Show On Excel Desktop But Not Excel Online

    Hi,

    You need to use Shapes.AddPicture, rather than Pictures.Insert, in order to be able to ensure that the image is embedded and saved with the document.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Images Show On Excel Desktop But Not Excel Online

    what i was referring to was the ability to insert a image into a file in excel online

    in your new example, you have actually embedded the picture into the file itself
    while it does display; besides resizing the image, there is nothing you can actually do to it. Like change the source file, the ratio, etc (basically anything in the picture format tab you will find in normal excel)

    if you want to emulate the end result, you will need to fully embed every single picture into your file then upload into excel online
    should you want to update one image you would need to physically change that image manually or delete all images and re-run your code

    to extrapolate what xlnitwit has provided
    Please Login or Register  to view this content.
    obviously replace the pic line with whatever you are using to provide the image path
    ps...not sure what c1.offset(0,0) is meant to do which would be different to just c1

  8. #8
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Images Show On Excel Desktop But Not Excel Online

    Quote Originally Posted by xlnitwit View Post
    Hi,

    You need to use Shapes.AddPicture, rather than Pictures.Insert, in order to be able to ensure that the image is embedded and saved with the document.
    Thanks this is exactly what I needed. Updates on excel online and desktop. Images sort with the table filters. The offset was because originally I had the image url in a different column and just never took it out. Heres the code I ended up with.

    Please Login or Register  to view this content.

+ 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. Online Excel Surveys Can't Import into Desktop Excel ??
    By qualityexcel in forum Excel General
    Replies: 0
    Last Post: 04-06-2017, 04:23 PM
  2. Replies: 2
    Last Post: 03-03-2016, 06:48 AM
  3. Show excel data as active dashboard on desktop
    By morne.goosen in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2014, 07:49 AM
  4. Replies: 2
    Last Post: 05-27-2014, 10:21 AM
  5. move images from excel to my desktop
    By michaelgs in forum Excel General
    Replies: 0
    Last Post: 09-17-2013, 12:35 AM
  6. Graduating from desktop to online presence
    By abousetta in forum The Water Cooler
    Replies: 5
    Last Post: 03-22-2013, 12:46 PM
  7. Show Images in an Excel Cell
    By Sandy Ross in forum Excel General
    Replies: 2
    Last Post: 11-24-2009, 07:44 AM

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