insert rows

G

gav meredith

afternoon, can someone please advise how this code should read so as to
insert rows to hold the data pasted.(within the print area)

cheers!!!

Private Sub CommandButton1_Click()

Sheets("quote2").Range("appendix").Copy

Sheets("contract").Select
Cells.FindNext(After:=ActiveCell).Activate

Cells.Find(What:="appendix1.0", _
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Activate

ActiveCell.Offset(2, 0).Select
ActiveSheet.Paste
End Sub
 
Y

yogendra joshi

You can use

Selection.Insert Shift:=xlDown

I have tried this and works well.

You can also decide where you want to shift.

Let me knos if it does not work in your code

Thanks,

Yogendra
 

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