Copy row attributes to inserted row below

raschwab

New Member
Joined
Mar 26, 2011
Messages
15
I am endeavouring to insert a new row in my worksheet and copy the formulas and values from the previous row. I have tried various schemes, the latest being:

Code:
Worksheets("Trade Record").Row(i).EntireRow.Copy Destination:=Worksheets("Trade Record").Row(i + 1)

This should be simple but I am missing something. Would very much appreciate someone's assitance.

Rick Schwab
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I am endeavouring to insert a new row in my worksheet and copy the formulas and values from the previous row. I have tried various schemes, the latest being:

Code:
Worksheets("Trade Record").Row(i).EntireRow.Copy Destination:=Worksheets("Trade Record").Row(i + 1)

This should be simple but I am missing something. Would very much appreciate someone's assitance.

Rick Schwab

Have you tried using the macro recorder ?
 
Upvote 0
Appreciate your suggestion and realize tht I should have given this a try in lieu of scouring the Internet for some code. I learned a couple of things by running the macro recorder. Bottom line I did get it to work.

Rick Schwab
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top