Closed 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 Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,613

    Re: Embedding Onedrive Images Directly into Excel

    OneDrive for Business (ODfB) and SharePoint Online (SP) are related components of Office 365, with overlapping architecture and features. If you use both OneDrive and SharePoint at work, it can get a little confusing. This link explains the differences.

    What’s the Difference Between OneDrive and SharePoint?

    You may want to create a local drive reference to the version of cloud service you are using or if you already have a local drive then google how to give a guest access to it. Then use the local drive path in your VBA code.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    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
    61,986

    Re: Embedding Onedrive Images Directly into Excel

    Duplicate thread closed. Continue in your original thread here, please: https://www.excelforum.com/excel-gen...nto-excel.html

    And be patient!
    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.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Embedding Onedrive Images Directly into Excel
    By engineer47 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2018, 04:06 PM
  2. 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
  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