+ Reply to Thread
Results 1 to 4 of 4

Hyperlinks between open Workbooks fail in OneDrive

  1. #1
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Hyperlinks between open Workbooks fail in OneDrive

    This issue exhibits in Excel 2019 (not necessarily 365).

    I open 2 workbooks and want to create a hyperlink in each workbook that links to the other in a OneDrive environment and takes the user between them.

    The hyperlinks are created but will only activate if the workbook being called is closed. On the other hand, if already open I get an error message to the effect that Excel cannot "open the workbook". Presumably, because it is already open. The current code is shown below.

    Any solutions gratefully received.

    Please Login or Register  to view this content.
    Regards,

    Stephen

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Hyperlinks between open Workbooks fail in OneDrive

    Hi Stephen,
    I think the problem lies in the fact that when you created that file with your AddIn the path to the your one drive environment is set which is not necessarily the same at the user's end.
    When you have the app installed you can tell it where you want the synced files to be store, in my case is a dive G with a subfolder _webstorage and there another named OneDrive

    This is what is set the hyperlink

    I was looking into it too and what might be possible is that the file's full name be read at all times when it's opened in let's say fixed cell of both your Data sheets and have the hyperlink refer to that cell as 'source'
    Probably a something to test.
    I'll try it out and let you know.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Re: Hyperlinks between open Workbooks fail in OneDrive

    Hi Hans

    Yes, I recognised that as a potential problem. However, I created these test files manually to avoid that that issue.

    It also possible the conversion Function from an "https://" string to a "C:\users" string is part of the problem. It's not my function but it works very well in tests. However, I included code just in case there is a problem there that I haven't recognised.

    One thing I also need to dentify, is whether there are similar issues in Office 365.

    Stephen

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Hyperlinks between open Workbooks fail in OneDrive

    I don't have Office 365 but will check with a friend's account.
    If he allows me to access their account I will be able to do some tests and let you know.

+ 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. Replies: 0
    Last Post: 09-10-2021, 10:26 AM
  2. [SOLVED] Saving a file to onedrive shared network and access via onedrive online
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2021, 11:56 AM
  3. Power Pivot attempt to source from OneDrive folder fail
    By maupiedra1979 in forum Excel General
    Replies: 0
    Last Post: 01-14-2020, 12:08 PM
  4. [SOLVED] Use VBA to open a document from OneDrive and then edit it
    By manofcheese in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-19-2019, 05:36 AM
  5. VBA to open, edit and save to onedrive
    By MedOpsManZA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2015, 01:27 PM
  6. Corrupt file. Fail to open using the workbooks.open method
    By Mortphi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 01:48 AM
  7. Hyperlinks fail when workbook is emailed
    By Tony Vargo in forum Excel General
    Replies: 7
    Last Post: 10-02-2009, 07:01 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