+ Reply to Thread
Results 1 to 3 of 3

Embedding Onedrive Images Directly into Excel

  1. #1
    Registered User
    Join Date
    01-15-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    5

    Embedding Onedrive Images Directly into Excel

    Hi there.

    I am trying to embed images into excel using VBA code.

    I have some code which works fine for a direct link to a picture e.g. a .JPG on google

    However the photos in OneDrive have a guest access hyperlink like:

    https://sharepoint/personal/folder/_...DI8EA&e=Smautu

    The code i have does not work with a link of this format.

    How can i directly embed an image using a link like this in VBA?

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,183

    Re: Embedding Onedrive Images Directly into Excel

    Moved to VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Registered User
    Join Date
    01-15-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    5

    Re: Embedding Onedrive Images Directly into Excel

    Found the solution in case anyone is having the same issue in the future.

    By changing "Guestaccess" to "Download" in the aspx link it generates a direct download link.

    VBA code interprets this as a direct link to the image and embeds it correctly.

+ 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. Help! Is it possible to use VBA to view images directly from hyperlinks?
    By Gjesse123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 02:25 PM
  2. Excel to onedrive to webpages
    By blacktrek in forum Excel General
    Replies: 0
    Last Post: 07-06-2015, 01:37 PM
  3. Replies: 1
    Last Post: 03-28-2012, 05:32 AM
  4. Replies: 0
    Last Post: 01-12-2012, 01:30 PM
  5. Conditional embedding of images/animation
    By Brisbane Rob in forum Excel General
    Replies: 1
    Last Post: 06-14-2007, 05:14 PM
  6. [SOLVED] Embedding Images in Excel Workbook
    By danmyhre@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2005, 05:05 PM
  7. Replies: 2
    Last Post: 06-01-2005, 05:05 PM

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