+ Reply to Thread
Results 1 to 2 of 2

Cannot Find Text File to Refresh (QueryTable & OS X)

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cannot Find Text File to Refresh (QueryTable & OS X)

    I am new to VBA in Excel. I have been going through the forums to figure out how to load multiple text files into multiple worksheets. Using Excel 2011 - v14.2.3 on OS X 10.8 - Mountain Lion.

    I am having trouble with what I assume is the file referencing. When I run the attached macro, I get an error stating it cannot find the text file. If I remove the ".Refresh" line it will process through and create the right number of new blank worksheets. I know the fpath codes for the Dir function, but I do not know if it will work with the QueryTable connection string. (I also tried to use fpath2 in the connection string but that did not work either).

    Any pointers would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by techydoc; 08-10-2012 at 09:29 PM.

  2. #2
    Registered User
    Join Date
    08-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Cannot Find Text File to Refresh (QueryTable & OS X)

    I found the problem. In the OS X filesystem long filenames are just fine. Guess this is not true of Excel 2011. It was shortening the filename and appending a unique code. When the ".Refresh" looked for this shortened filename, it could not find it of course.

    Solved by shortening filenames.

+ 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