+ Reply to Thread
Results 1 to 2 of 2

Error Handling opening excel workbook from shared network

  1. #1
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    168

    Error Handling opening excel workbook from shared network

    Hi all,

    I have a macro which opens a workbook stored in a shared network drive, so the file path is a hyperlink rather than a C: path. At the moment my macro works fine and opens the link stored in the workbook. However, I want to put in an error handler so that if either the link or filepath/file name has changed when trying to open the workbook, it will provide a notification and then exit the sub as it has been unable to find the file.

    Unfortunately when i run the below code, my Excel get's stuck in an infinite loading loop and never gets to the error handler. To trigger the error handler I have to open my task manager and end the new excel instance. I think my code is getting stuck because I have opened a new excel instance which is still open but can't find the file?

    Any help would be appreciated.

    Please Login or Register  to view this content.
    Excel Beginner

  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,938

    Re: Error Handling opening excel workbook from shared network

    THis thread has been marked as SOLVED. If you marked it as such, care to share your answer?
    If you did not, do you want it "unmarked"?
    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

+ 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: 2
    Last Post: 05-10-2017, 02:58 PM
  2. Replies: 3
    Last Post: 08-20-2013, 02:46 PM
  3. Workbook can not be shared on a network
    By johnw993 in forum Excel General
    Replies: 1
    Last Post: 03-29-2013, 08:48 AM
  4. [SOLVED] Excel VBA - Handling file contention on "shared" workbook
    By TMS in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-18-2013, 04:37 PM
  5. Excel 2007 Loader to Access. Error running on shared network drive
    By jvbeats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 11:54 AM
  6. [SOLVED] Open workbook from network location - error handling
    By supern0va in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 07:22 AM
  7. Shared Excel Workbook closes automatically while opening
    By saurabh.m in forum Excel General
    Replies: 0
    Last Post: 12-09-2009, 05:52 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