ODBC Connection Command Text
问题 I use the below statement successfully many times in my VBA code. With ActiveWorkbook.Connections("Query").ODBCConnection .CommandText = SqlStat .Refresh End With I'm populating SQLStat based on parameters that are entered into Excel and inserted into the rest of the query. One of these parameters is from a column range within Excel. I have the below code to loop through the range, and get every value within this to put into one string, separated by commas. I then use this string within an IN