Query Tables (QueryTables) in Excel 2010 with VBA with VBA creating many connections

前端 未结 8 718
北荒
北荒 2021-02-06 12:49

I\'m following code I found on another site. Here\'s the basics of my code:

Dim SQL As String
Dim connString As String

connString = \"ODBC;DSN=DB01;UID=;PWD=;Da         


        
8条回答
  •  梦如初夏
    2021-02-06 13:33

    If you want to delete if right after refresh you should do the refresh not in the background (using first parameter -> Refresh False) so that you have proper sequence of actions

提交回复
热议问题