QueryTable Lookup

A

Andy

I am trying to populate Excel comboboxes (or something similar) from data in
Access. By scouring the internet, I found out about QueryTable and I have
written code that will return the results of a query onto an Excel sheet. I
would like the results to go to comboboxes. Here is what I have:

Set varQuery = ActiveSheet.QueryTables.Add(Connection:=varConn,
Destination:=Range("a1"), Sql:=varSql)
varQuery.Refresh

Any help is appreciated. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top