Hi,
i have a workbook as a masterfile and want to open another workbook to copy the data and paste it to my masterfile.
here's the problem if my data only have the first row and the second row onwards is empty data. my current VBA code will copy the empty data and will cause the error when i paste the empty data into my masterfile.
what is the VBA code to copy only the first row if only the first row of data available? then copy the entire row if the data is more than 1 row. the data is only available from column A to column T.
My current code is below. Hope can assist to correct my code below. Also please check my Application.ScreenUpdating's code is it in the correct sequence?
![]()
Please Login or Register to view this content.
Bookmarks