Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Drive (VBA/Excel/2000 & 2003)

    To change the default drive to a mapped network drive--Z in the example--I have used the command
    [b]ChDrive
    Regards
    Don

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Default Drive (VBA/Excel/2000 & 2003)

    Do you really need to set the default drive? What do you need it for? You can specify a path, with a drive letter or an UNC path, for most or all file operations in VBA.

  4. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Default Drive (VBA/Excel/2000 & 2003)

    Hans
    You have no idea just how much better you have made me feel.
    That command was inserted some many months back when a subsequent command failed. I have been unable to generate a failure today after remming out the ChDir command and was concerned that I had missed something.
    The apparent risk is now considerably lower. Many thanks.
    Regards
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •