+ Reply to Thread
Results 1 to 3 of 3

[Ask] Import Text file And Call reference path file with Value Range.

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question [Ask] Import Text file And Call reference path file with Value Range.

    dear Master,


    i have problem with my program,

    scenario :

    - i have one program to browse any file and path file will be place in Cell (Ex : Range("a1").
    - Program two, will to import form text file.

    problems :

    how to change program two (in coding d:\for share\Engine Macro\Ms_Data\Loan_Microfinance2.txt) with call reference call path file in cell (Range("a1") ???

    ex coding :

    with ActiveSheet.QueryTables.Add(Connection:= _
    "TEXT;d:\for share\Engine Macro\Ms_Data\Loan_Microfinance2.txt" _


    thnx master,

    sorry my English very bad .....

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: [Ask] Import Text file And Call reference path file with Value Range.

    I'm not familiar with the quertytables function but in my experience with dynamic filepaths i usually have to put it in a variable. I'm not sure if this will work in your case but its worth a shot right?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: [Ask] Import Text file And Call reference path file with Value Range.

    Quote Originally Posted by GaidenFocus View Post
    I'm not familiar with the quertytables function but in my experience with dynamic filepaths i usually have to put it in a variable. I'm not sure if this will work in your case but its worth a shot right?

    Please Login or Register  to view this content.
    thx brother i will try and report to you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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