I want to paste the data in record set to 3 columns in a worksheet.
rs.Open "SELECT [Sheet1$].Security,[Sheet1$].Description,[Sheet1$].ID FROM [Sheet1$] WHERE [Sheet1$].Number=1", cn, adOpenKeyset, adLockReadOnly
With Worksheets("Sheet4")
.Cells.ClearContents
.Cells(5, 1).CopyFromRecordset rs
End With
When I use the above code it pastes the data in to sheet 4 starting from 5,1, whereas I want to paste this data in column A, E, H of sheet 4. can anyone throw some light please.