Moving sheets

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

Hi I am copying a worksheet from a book and what I am looking to have this
automatically to the end of the workbook.

How would I do this? I have used the manual macro builder and it gives a
code like

Sheets("Sheet4").Move After:=Sheets(5)

But my workbook will have continous added sheets


Thanks in advance

Greg
 
Hi Greg

you could try something like this

dim i as long
i = sheets.count
sheets("sheet4").move after:=Sheets(i)

Cheers
JulieD
 
Thanks Julie

Once I worked out how to put into my code. It works perfect

Greg
 

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