ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CommandText Property (https://www.excelbanter.com/excel-programming/279918-re-commandtext-property.html)

Dick Kusleika[_3_]

CommandText Property
 
Dixie

That property in XL97 is Sql, as in

Sheet1.QueryTables(1).Sql = "SELECT ..."

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Dixie" wrote in message
...
Does excel 97 have a property that is comparable to
CommandText in Excel 2000? I am writing a macro that
uses an input box to ask the user to select the data. The
input then uses an SQL statment with CommandText to
display the segment of data on the spreadsheet. The macro
is written in 2000 however I need the same functionality
for Excel 97.





All times are GMT +1. The time now is 02:17 PM.

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