Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sheet1$A1:A1 vs Sheet1$

Can anyone help me understand why the first SELECT statement doesn't
work, but the second one does:

Select * from [Sheet1$A1:A1] - This returns an empty recordset

Select * from [Sheet1$] - This works correctly

Sheet1 looks like this:

ID Package Department StartFrom
4 Budget A 1
5 Forecast B 1
6 Periodic Forecast C 1
7 NY Forecast D 1
8 NY_BUD E 1
9 CY_BUD F 1

I thought $A1:A1 meant get all used columns and rows, am I wrong?

  #2   Report Post  
Posted to microsoft.public.excel.programming
GS GS is offline
external usenet poster
 
Posts: 364
Default Sheet1$A1:A1 vs Sheet1$

A1:A1 refers to a range starting in cell A1 and ending in cell A1, so you are
collecting data from only that cell.
Sheet1 refers to the entire sheet, so you are collecting data from all cells.
GS

" wrote:

Can anyone help me understand why the first SELECT statement doesn't
work, but the second one does:

Select * from [Sheet1$A1:A1] - This returns an empty recordset

Select * from [Sheet1$] - This works correctly

Sheet1 looks like this:

ID Package Department StartFrom
4 Budget A 1
5 Forecast B 1
6 Periodic Forecast C 1
7 NY Forecast D 1
8 NY_BUD E 1
9 CY_BUD F 1

I thought $A1:A1 meant get all used columns and rows, am I wrong?


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
sheet1 TJ Excel Discussion (Misc queries) 3 April 20th 09 05:45 PM
=[Book.xls]Sheet1!A1 and not c:\blah\=[Book.xls]Sheet1!A1 Gaijintendo Excel Discussion (Misc queries) 1 August 7th 08 09:29 AM
[=Sheet1!A1] - if i use Column A1 ('Sheet1') / A2 ('Sheet2') Lawrence C H Tan Excel Worksheet Functions 0 January 19th 07 08:29 PM
Why Sheet1 is displayed in modules as sheet1 Jim at Eagle Excel Programming 2 April 22nd 05 03:09 PM
Sheet1 object not Worksheets("Sheet1") onedaywhen Excel Programming 2 August 12th 03 12:38 PM


All times are GMT +1. The time now is 09:43 PM.

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"