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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -