Does anyone know if it is possible to use VBA to execute a SQL statement (SELECT) against a range in a workbook, then write the result to another range in the same workbook?
For example, I'd like to say (pseudo-code):
SELECT *
FROM Range("A3:H22"
WHERE Category = 'Parts', SubCategory = 'Misc', Available = 'Now' or 'Soon', and Price < 100
and write the results to Range "A40"
Am I asking too much?

Thanks!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
For example, I'd like to say (pseudo-code):
SELECT *
FROM Range("A3:H22"

WHERE Category = 'Parts', SubCategory = 'Misc', Available = 'Now' or 'Soon', and Price < 100
and write the results to Range "A40"
Am I asking too much?

Thanks!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)