ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy and paste macro (https://www.excelbanter.com/excel-programming/366202-copy-paste-macro.html)

Bikernick

Copy and paste macro
 
I am trying to write a bit of code to search for the first blank row in an
excel list then paste a selection at that point in the list then stop.

I have managed it to finding the first blank row, but it continues pasting
into all the blank cells thereafter.

Help please

Don Guillett

Copy and paste macro
 
does this help

Sub firstblankrow()
fbr = Cells(1, 1).End(xlDown).Offset(1).Address
Range("a1").Copy Range(fbr)
End Sub


--
Don Guillett
SalesAid Software

"Bikernick" wrote in message
...
I am trying to write a bit of code to search for the first blank row in an
excel list then paste a selection at that point in the list then stop.

I have managed it to finding the first blank row, but it continues pasting
into all the blank cells thereafter.

Help please





All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com