excel - Ado multiple range select -


i need data excel sheet multiple range

rng1 = "[" & sheetname & "$f1:g1000]," rng2 = "[" & sheetname & "$ai1:ai1000]" rng = rng1 & rng2 szsql = "select * " & rng$ & ";" 

but somthing wrong, how select multiple range copy data?

something this, if don't have column headers:

szsql = "select [f1], [f2], [f30] [" sheetname & "$f1:ai1000];" 

where f1, f2 etc indicates field1, field2 , on. if have column headers use in place of f1 , f2.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -