Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How use AutoFilter function to query the right range of excel data

Hi everyone,

Recently, I'm writing a application to read excel table and do some
operation on it. But sometimes, the column name in the table is not in the
first row of the excel table, and seems that the my sql can only work when
the column name is in the first row of the excel table.

Who can tell me how to read the column name in the excel when the column
name is not in the first row? could you please give me some samples?

BTW, I saw the Microsoft query in Office can read the right range in the
excel table. e.g. it has a Sheet1$ option and a Sheet1$_FilterDatabase option
when I want to build a sql query. the maybe the Sheet1$_FilterDatabase is the
right one I should choose, Can I realize this function?

Thanks
Winnie
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
Query SQL Data in Excel with a function? FullCity Consulting Inc. Excel Worksheet Functions 1 November 13th 07 05:26 AM
Query SQL Data in Excel with a function? FullCity Consulting Inc. Excel Programming 1 November 13th 07 05:26 AM
Passing a range of data to a function - Excel - visual basic dochoa Excel Programming 2 February 2nd 06 08:13 PM
HOW DO I CHANGE QUERY DATA TO A DATE RANGE? GRABrendan Excel Worksheet Functions 4 September 27th 05 04:43 AM
Can the autofilter function run automatically when data changes? help Excel Discussion (Misc queries) 0 August 29th 05 02:34 AM


All times are GMT +1. The time now is 06:05 PM.

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

About Us

"It's about Microsoft Excel"