Code not going to next unused row

  • Thread starter Thread starter goss
  • Start date Start date
G

goss

Hi ng
using xl 2003

My code is not pasting to next unused row
Should begin pasting row 9

Every time I run the code pastes further down and down

What am I doing wrong?

Sub Add_Employee()
Worksheets("mytools").Activate
Range("A1:J7").Select
With Range("A1:J7")
.Copy
End With

Worksheets("Time_Entry").Activate
Cells(Cells.SpecialCells(xlCellTypeLastCell).Row, 1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Su
 
Try adding "+1" after the .Row in your SpeccialCells line

eg.

Cells(Cells.SpecialCells(xlCellTypeLastCell).Row+1, 1).Select
 
Hi goss

Try

Sub Add_Employee()
Worksheets("mytools").Range("A1:J7").Copy _
Worksheets("Time_Entry").Range("A65000").End(xlUp).Offset(1, 0)
End Sub

--
XL2002
Regards

William

(e-mail address removed)

| Hi ng
| using xl 2003
|
| My code is not pasting to next unused row
| Should begin pasting row 9
|
| Every time I run the code pastes further down and down
|
| What am I doing wrong?
|
| Sub Add_Employee()
| Worksheets("mytools").Activate
| Range("A1:J7").Select
| With Range("A1:J7")
| Copy
| End With
|
| Worksheets("Time_Entry").Activate
| Cells(Cells.SpecialCells(xlCellTypeLastCell).Row, 1).Select
| ActiveSheet.Paste
| Application.CutCopyMode = False
| End Sub
|
|
| ---
| Message posted
|
 

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

Back
Top