PDA

View Full Version : Copy & Paste to the next empy cell. (Vba Code not Working)



Domcast
04-19-2020, 10:06 AM
Hello,

I created a macro button to copy a cell and paste value in another sheet but it just replaces the value in the same cell on the other sheet. I need it to count the columns and continue to paste the value in the next cell to the right. The code below is what i currently using to make it happen, this worked on prior spreadsheets I have done but not sure what I'm doing wrong. Please Help..




Col = Sheet3.Cells(11, 11).CurrentRegion.Columns.Count + 1

Sheet3.Cells(11, 11) = Sheet2.Range("E10")

Fluff
04-19-2020, 11:25 AM
Cross posted
https://www.mrexcel.com/board/threads/copy-paste-to-the-next-empy-cell-vba-code-not-working.1131272/

https://www.ozgrid.com/forum/index.php?thread/1227276-copy-paste-to-the-next-empy-cell-vba-code-not-working/