Moving selected sheets

P

Primoz Bradac

I want to create a macro which would move a set of selected sheets from
one book to another.

I know how to select the sheets and move them e.g.:

Sheets(Array("List5", "List3")).Select
Sheets("List3").Activate
Sheets(Array("Sheet5", "Sheet3")).Move Before:=Workbooks
("Book3").Sheets(3)

But what if the sheets are already selected before starting the macro.
So I don't need the "Select" method and instead of Sheets(Array
("Sheet5"...).Move I'd need something like Sheets(<selected
sheets>).Move

TIA,
Primoz
 

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