LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default using ADO for database in sheet

"keepITcool" wrote ...

your test leads to wrong conclusions.

you MUST reference the sheetname else you'll retrieve the data from the
sheet that was active when the file was saved.


keepITcool,
Sorry, your test also leads to wrong conclusions <g.

If you omit the sheet name e.g.

SELECT * FROM [A:A]

the worksheet queried will be the first i.e.
ThisWorkbook.Worksheets(1), even if it is hidden.

You can also omit the sheet name if you are using a workbook-level
defined Name, of course <g.

Jamie.

--
 
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
Time sheet database Oldjay Excel Discussion (Misc queries) 0 October 10th 06 04:54 PM
Database (or the like) from Excel Sheet Ratedr Excel Discussion (Misc queries) 3 September 21st 06 09:52 PM
How to include data on the same sheet some in database some not Edify Excel Worksheet Functions 0 May 18th 06 09:28 PM
Selecting data from database sheet Duane Excel Discussion (Misc queries) 0 May 8th 06 10:30 PM
copy database to another sheet lexitollah via OfficeKB.com Excel Worksheet Functions 2 June 30th 05 03:40 PM


All times are GMT +1. The time now is 01:07 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"