ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert Row & Paste Data (https://www.excelbanter.com/excel-programming/385564-insert-row-paste-data.html)

Karen McKenzie

Insert Row & Paste Data
 
I'm hoping someone can help me.
I'd like to know what code I need to insert a row below the current line I'm
working in, then to copy all formulae and formats from A50:AM50 (named range
"property") and paste this into the same columns in the row that has been
inserted.

Vergel Adriano

Insert Row & Paste Data
 
something like this

ActiveCell.Offset(1, 0).EntireRow.Insert
Range("property").Copy ActiveSheet.Range("A" & ActiveCell.Row + 1)


"Karen McKenzie" wrote:

I'm hoping someone can help me.
I'd like to know what code I need to insert a row below the current line I'm
working in, then to copy all formulae and formats from A50:AM50 (named range
"property") and paste this into the same columns in the row that has been
inserted.


Gord Dibben

Insert Row & Paste Data
 
See David McRitchie's site for Insert Rows code.

http://www.mvps.org/dmcritchie/excel/insrtrow.htm


Gord Dibben MS Excel MVP

On Mon, 19 Mar 2007 04:38:08 -0700, Karen McKenzie
wrote:

I'm hoping someone can help me.
I'd like to know what code I need to insert a row below the current line I'm
working in, then to copy all formulae and formats from A50:AM50 (named range
"property") and paste this into the same columns in the row that has been
inserted.




All times are GMT +1. The time now is 05:21 PM.

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