+ Reply to Thread
Results 1 to 2 of 2

Save with variable users

  1. #1
    Registered User
    Join Date
    05-23-2005
    Posts
    1

    Save with variable users

    First, thanks in advance for any help you can offer, and second I’m a newbie so here it goes I have code that pulls a file, the user can then modify this file. However I have “hard-coded” the destination that it saves and opens this file from. Now several different users will need to edit, and save this file, so my question comes…How can I make the “JohnD” in C:\Documents and Settings\JohnD\Desktop\Scrap\scrape05.xls a variable so that if the file is moved to a different machine the code will not error out.

  2. #2
    Registered User
    Join Date
    05-23-2005
    Posts
    4

    Usernames

    You could use something like
    strFileName = "C:\Documents and Settings\" & Application.UserName & "\Desktop\Scrap\scrape05.xls"

+ 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