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. #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.

  3. #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
  •