Can't copy ActiveSheet to clipboard

  • Thread starter Thread starter Peter Chatterton
  • Start date Start date
P

Peter Chatterton

Shouldn't this code create a new worksheet from the active one?

It does create a new sheet,
but just copies the current clipboard to it.

ActiveSheet.Select
ActiveWorkbook.Sheets.Add After:=Worksheets(1)
ActiveWorkbook.Worksheets(2).Paste

Thanks,
Peter
 
Hi Peter,

To add a copy of the active sheet, try:

Sub Tester()
ActiveSheet.Copy After:=Worksheets(1)
End Sub
 
Thanks a lot Norman.

So why doesn't ActiveSheet.Select put anything in the clipboard?

Peter.
 
Hi Peter,
So why doesn't ActiveSheet.Select put anything in the clipboard?

This command selects the activesheet (which is already selected); it
includes no copy instruction.
 

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