#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SQL Keyword

I am VBA user that has recently made the switch from Excel 97 to Excel
2003. Frequently in my code in '97 I used statements such as:

ActiveCell.QueryTable.Sql = ....

but in Excel 2003 I do not see a reference to the Sql keyword.

Has it been replaced? If so, what with? Thanking you in anticipation.

S Taylor
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SQL Keyword

goto the object browser in the VBE

Right click in a gray area and select show hidden

do a search on SQL

You will see it is still there.

--
Regards,
Tom Ogilvy



"S Taylor" wrote in message
om...
I am VBA user that has recently made the switch from Excel 97 to Excel
2003. Frequently in my code in '97 I used statements such as:

ActiveCell.QueryTable.Sql = ....

but in Excel 2003 I do not see a reference to the Sql keyword.

Has it been replaced? If so, what with? Thanking you in anticipation.

S Taylor



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default SQL Keyword

S

The new property is CommandText, but Sql still works (as Tom points) out.
If you need your app to be backward compatible with 97, stick with Sql.
CommandText was introduced in 2000.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"S Taylor" wrote in message
om...
I am VBA user that has recently made the switch from Excel 97 to Excel
2003. Frequently in my code in '97 I used statements such as:

ActiveCell.QueryTable.Sql = ....

but in Excel 2003 I do not see a reference to the Sql keyword.

Has it been replaced? If so, what with? Thanking you in anticipation.

S Taylor



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting a Keyword Gmata Excel Worksheet Functions 3 October 1st 09 10:06 PM
Filtering with keyword c_robertson Excel Discussion (Misc queries) 3 September 2nd 09 08:13 PM
most popular keyword Tony_student[_2_] Excel Worksheet Functions 3 June 27th 09 07:19 AM
keyword search Doman Excel Discussion (Misc queries) 2 July 20th 06 01:30 PM
Sharing with Keyword Nam Excel Discussion (Misc queries) 0 April 28th 06 05:27 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"