+ Reply to Thread
Results 1 to 1 of 1

Save and ignore network drive absence when not connected

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Save and ignore network drive absence when not connected

    good afternoon guys

    I have a couple of workbooks that are designed to save in the same way when they are closed and apart from the file structure both codes are the same. when connected to a network they will save to both the C drive and the W drive,, when disconnected they should save to just the C drive, ignoring the absence of the W drive

    Both work perfectly when connected, but only one works when disconnected... the code below is the one not working..
    this line highlights in yellow:

    ActiveWorkbook.SaveAs Filename:="W:\Risk And Security\Compliance\Audit Reports\" & sSaveAs

    any assistance on where I have went wrong would help..

    many thanks

    JT
    Please Login or Register  to view this content.
    fould my fault,,, forgot to add the error code

    here is the adjusted code that works if anyone would like it

    Please Login or Register  to view this content.
    Last edited by JamesT1; 05-18-2016 at 12:08 PM. Reason: Additional code

+ 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. VBA to 'save as' file on a network drive with a name from a referenced cell
    By Sophie02 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2015, 05:34 AM
  2. [SOLVED] Macro to save to Network Drive is saving to My Documents
    By MooseAUH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2014, 07:26 AM
  3. Save files to a Mapped Network Drive on server
    By wotsup in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2012, 11:46 AM
  4. Excel 2010 Save to a network drive problem
    By iamgaryg in forum Excel General
    Replies: 0
    Last Post: 08-17-2010, 10:35 AM
  5. [SOLVED] My computer will not save to my network drive
    By helpsaving in forum Excel General
    Replies: 1
    Last Post: 04-19-2006, 12:45 AM
  6. Replies: 1
    Last Post: 05-03-2005, 02:06 PM
  7. why am I unable to save a Excel file on a network drive%3f
    By ken in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2005, 10:06 PM

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