Excel-VBA - Copy/paste cells then move to next row

July 2017




Issue


I am making a questionaire. When the questionaire is complete I want to copy the answers to another worksheet then reset the answers to zero then fill out the questionaire again. I want the next set of data to go into the row below the previous set of collected data. I can copy the range to another worksheet and reset the answers but I do not know how to take the second set of data and copy it to the row below the previous collected data.

Solution


"Copy it to the row below the previous collected data. "
  • After copy statement:
  • Worksheets(destination sheet name within doublequotes).cells(rows.count,"A").end(xlup).offset(1,0).pastespecial


Thanks to Venkat1926 for this tip.

Related


Published by aakai1056. Latest update on March 1, 2012 at 10:40 AM by aakai1056.
This document, titled "Excel-VBA - Copy/paste cells then move to next row," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).