copy a sheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to copy a sheet to another workbook and specify which sheet to put it before.
 
Rob said:
I want to copy a sheet to another workbook and specify which sheet to put it before.

Sub Macro1()
'
' Macro1 Macro
' Macro grabada el 20-01-2004 por Beto
'

'
Sheets("Hoja2").Copy Before:=Workbooks("Libro2").Sheets(3)
End Sub

As simple as turning on the macro recorder, perform the task, stop the
macro recorder and check the resulting code.
Regards,
 

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