Praneeth30
New Member
I am trying to display the results of a query into a worksheet using the below code, but it is throwing Run-time error:'13' Type Mismatch error.
Worksheets("QueryInDB").Select
Range("D6").Select
Do Until ActiveCell = ""
ActiveCell.Offset(1).Select
Loop
Range("D6", ActiveCell.Offset(-1, 3)).ClearContents
Sheets("QueryInDB").Range("D6").CopyFromRecordset rst
Any help would be appreciated.
Worksheets("QueryInDB").Select
Range("D6").Select
Do Until ActiveCell = ""
ActiveCell.Offset(1).Select
Loop
Range("D6", ActiveCell.Offset(-1, 3)).ClearContents
Sheets("QueryInDB").Range("D6").CopyFromRecordset rst
Any help would be appreciated.