Posted 30 November 2017, 2:19 am EST
I am running into an issue when I am trying to paste more rows on a sheet than the number of rows available. For example I am trying to paste 500 rows of data on a sheet that has only 200 rows. I know that before the paste can occur, the size of the pasted data is compared to the size of the sheet and if the data will not fit on the sheet the paste is cancelled, and I can see the error using the InvalidOperation Event. My question is if there is a way to perform my own data validation before any pasting occurs. Then if the sheet doesn’t have enough rows to hold the data, I will add rows to the sheet before continuing with the paste event.