+ Reply to Thread
Results 1 to 4 of 4

Copy path to a variable

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    23

    Unhappy Copy path to a variable

    Hello Forum,

    I have code below, which opens a file using the input box
    Please Login or Register  to view this content.
    My issue is I dont want it open the input box directly save a path name to the variable "MyFile"

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Copy path to a variable

    If I understand you correctly, you simply want to hard code the name of the file into MyFile rather than use an input box? If this is the case, you can remove the line involving the Application.GetOpenFilename and replace it with:
    Please Login or Register  to view this content.
    Obviously, replace with the full path of the file you want to acces.

    Does this help?

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Copy path to a variable

    Thanks a lot that helped

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Copy path to a variable

    Happy to help

+ 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