ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Query Refresh without filename prompt (https://www.excelbanter.com/excel-programming/364393-query-refresh-without-filename-prompt.html)

RLang

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


RLang

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



All times are GMT +1. The time now is 03:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com