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
Post a Comment