Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Simple Question, need quick answer please

Is there a way - in excel, to run SQL like queries on a sheet of data within the same workbook

E.g.
Sheet1 has data
In sheet 2, macro runs "SELECT * FROM Sheet1 WHERE Sheet1.Col1 < 5"

I know there is ways to simulate this (by looping data) but I need to do several different parameterised queries

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Simple Question, need quick answer please

You can use ADO to look at sheets within a workbook, but this can only be on
a file saved to disk, not the open workbook. It can be the same workbook as
the open one, but it will look at the saved version.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Stevie_mac" wrote in message
...
Is there a way - in excel, to run SQL like queries on a sheet of data

within the same workbook

E.g.
Sheet1 has data
In sheet 2, macro runs "SELECT * FROM Sheet1 WHERE Sheet1.Col1 < 5"

I know there is ways to simulate this (by looping data) but I need to do

several different parameterised queries

Thanks in advance.




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
SIMPLE QUESTION need fast answer please Jannie Excel Worksheet Functions 6 October 5th 07 06:22 PM
Simple Question, But No Answer Joe Teixeira Excel Worksheet Functions 2 December 19th 06 12:16 AM
Quick answer please! R.P.McMurphy Excel Worksheet Functions 5 January 12th 06 07:58 PM
Another Quick Simple VBA question (if...then statement) abxy[_35_] Excel Programming 6 February 27th 04 09:48 AM
simple question, hopefully a simple answer! Matt B Excel Programming 5 January 13th 04 08:43 PM


All times are GMT +1. The time now is 05:12 AM.

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"