+ Reply to Thread
Results 1 to 3 of 3

In VBA code if a workbook that i have referenced is not there - how do i continue

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007
    Posts
    3

    In VBA code if a workbook that i have referenced is not there - how do i continue

    Hi,

    In my macro i open a file on the network. Sometimes this file does not exist and the VBA stops (as expected)

    What would be the code to tell VBA to continue through VBA code if the file does not exist withiout getting the error messages?

    I assume that i will need to have code for 'if file exists' do this or 'if file does not exist' do this...

    Thanks in advance

    Mark

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: In VBA code if a workbook that i have referenced is not there - how do i continue

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    Southampton
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: In VBA code if a workbook that i have referenced is not there - how do i continue

    Thanks Bob.

    Regards
    Mark

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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