+ Reply to Thread
Results 1 to 3 of 3

Accessing the windows drive from vba.....

  1. #1
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Accessing the windows drive from vba.....

    I'm using the following code to create a folder in docs & settings and put a data file there:

    Please Login or Register  to view this content.
    However, if a user has a windows installation that isn't located on C: (rare but it happens) is there a way to ensure access to the correct location?
    Last edited by swoop99; 03-03-2012 at 04:29 PM.

  2. #2
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: Accessing the windows drive from vba.....

    Nevermind, found it:

    Please Login or Register  to view this content.
    that was easy....

  3. #3
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Accessing the windows drive from vba.....

    Rather than a number, specify an environment variable name instead:
    Please Login or Register  to view this content.
    See the Help for more info.

+ 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