Excel VBA - insert row & copy formulas

B

bforster1

I have been able to get a button that inserts rows but also need th
formula in the new row to copy from the row moved.

Below is my code for inserting rows. What would I add to have th
formulas across the row to copy to the new row??

Sub Macro4()
Range("TotalRev").Select
ActiveCell.Offset(-1, 0).Select
Selection.EntireRow.Insert
Range("COGS").Select
ActiveCell.Offset(-1, 0).Select
Selection.EntireRow.Insert
End Sub

Thank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top