excel - How to paste specific columns from ADODB.recordset -


i have recordset contains 10 fileds . need paste fields 1 - field 7 sheet1 a1 , field 8 filed 10 sheet2 a1.

set rs = createobject("adodb.recordset') rs.open sql, connection thisworkbook.worksheets("sheet1").range("a1").copyfromrecordset rs 

the above code copies sheet1 a1

how can specify need field1 - field7 sheet1 , field8 field10 sheet2 ?


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -