+ Reply to Thread
Results 1 to 2 of 2

Thread: Query Refresh without filename prompt

  1. #1
    RLang
    Guest

    Query Refresh without filename prompt

    Hi,
    I'm refreshing a worksheet query that refers to a text file and I can't
    quite figure out what code is necessary to avoid the dialog box asking for
    the source file name each time. The path is c:\temp\generic.txt". Thanks
    for the help.

    Sub Macro4()
    ActiveSheet.QueryTables(1).Refresh
    End Sub


  2. #2
    RLang
    Guest

    RE: Query Refresh without filename prompt

    Never Mind. Figured it out.

    "RLang" wrote:

    > Hi,
    > I'm refreshing a worksheet query that refers to a text file and I can't
    > quite figure out what code is necessary to avoid the dialog box asking for
    > the source file name each time. The path is c:\temp\generic.txt". Thanks
    > for the help.
    >
    > Sub Macro4()
    > ActiveSheet.QueryTables(1).Refresh
    > End Sub
    >


+ 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.2.0