+ Reply to Thread
Results 1 to 2 of 2

Opening a txt file based on cell value in excel

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    EARTH
    MS-Off Ver
    2010
    Posts
    1

    Opening a txt file based on cell value in excel

    Hello,

    I'm trying to open a text file based on a cell value in excel.

    Please Login or Register  to view this content.
    This will open a txt file that I have saved named R_ClusterCuttingCode.txt , but I want it to open the file that i have at: Sheets("Preanalysis").Range("AA1")

    Thanks! This has been stumping me for awhile!

    Dr Steve
    Last edited by 6StringJazzer; 04-09-2015 at 03:50 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,226

    Re: Opening a txt file based on cell value in excel

    This assumes that only the file name is in AA1, not the entire path:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Update cell links between 2 excel file without opening source file
    By ferry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2012, 03:03 PM
  2. Replies: 2
    Last Post: 02-25-2011, 01:24 PM
  3. Excel changing format of cell when opening a csv file
    By Dfarland in forum Excel General
    Replies: 3
    Last Post: 07-09-2010, 12:17 PM
  4. Opening an excel file from a cell reference
    By happyfingers in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2008, 05:26 PM
  5. Replies: 1
    Last Post: 01-26-2007, 02:25 PM

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