What I Have: I am copying data to one workbook sheet data in another workbook sheet following VBA code I did write When I run this its showing Application-defined error.
Workbooks(mainworkbook).Sheets(ws.Name).Range("A1").Value = Workbooks(dataworkbook).Sheets(ws.Name).Range(Cells(1, 1), Cells(clearrow, lcol1)).Value