+ Reply to Thread
Results 1 to 2 of 2

Open file.txt For Input As #1, Is it possible without declaring drive name?

  1. #1
    Registered User
    Join Date
    01-16-2007
    Posts
    8

    Open file.txt For Input As #1, Is it possible without declaring drive name?

    Hi,


    Normally to open file we do this:

    Please Login or Register  to view this content.
    Is it possible to change "C:\VBA\" with some syntax that say current folder where my xls file are?

    Thank you

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by bluechip
    Hi,


    Normally to open file we do this:

    Please Login or Register  to view this content.
    Is it possible to change "C:\VBA\" with some syntax that say current folder where my xls file are?

    Thank you
    Hi

    try

    Application.DefaultFilePath


    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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