views:

26

answers:

1

I want to query the table (Named range) from vba using SQL.

name id
Alpha 1
Beta 2
Gamma 3

I want to query like, "select Name from table1 where id =3" in VBA can someone help with the connection string that needs to be used.

thanks! Srin

+2  A: 

This puts it pretty well: http://vbadud.blogspot.com/2007/12/query-table-with-excel-as-data-source.html

SteveCav
Thank you , it works!
Sr7