+ Reply to Thread
Results 1 to 2 of 2

VBA error by opening other workbook on the network

  1. #1
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019
    Posts
    144

    VBA error by opening other workbook on the network

    Dear forum readers,

    I have a very annoying problem with an excel sheet. It contains a lot of vba code and macros but it often goes wrong with one specific code.
    That code opens another sheet on our network and copies data into it, to which all further actions must proceed.

    Can someone help me with this short information? Why does it always go wrong on this line? I almost always have to reboot my PC, but sometimes a second time works too

    Kind Regards,
    FvdF
    Attached Images Attached Images

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: VBA error by opening other workbook on the network

    Hi there,

    Posting your code is much more useful than posting a screenshot of it - who wants to try to recreate that highlighted line by typing it in manually?

    I can't suggest how to stop the error from occurring, but you could use "Dir" to determine whether or not the file can be located before trying to open it:

    Please Login or Register  to view this content.

    Hope this helps.

    Regards,

    Greg M

+ 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. Run-time error when saving workbook on the network
    By skyblue955 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2021, 09:38 AM
  2. [SOLVED] Error Handling opening excel workbook from shared network
    By Catsonheat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2019, 12:19 AM
  3. Replies: 2
    Last Post: 05-10-2017, 02:58 PM
  4. Opening a workbook on a network drive
    By aeewing in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2014, 08:22 AM
  5. Replies: 3
    Last Post: 08-20-2013, 02:46 PM
  6. VBA - Opening a workbook on a network
    By thompsy121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2009, 06:56 AM
  7. Replies: 1
    Last Post: 03-06-2006, 04:30 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