Copy a worksheet from one Excel file to another Excel file?

Can anyone give me some pointers as to how to copy an entire worksheet from one Excel file into a new worksheet within another Excel file please, when both files are already open?

I've tried variations of "copy worksheet" and "copy range" but I'm just not getting anywhere.

15" MacBook Pro (Late 2008) + Power Mac G4 (Digital Audio), Mac OS X (10.5.8)

Posted on Jan 12, 2010 3:50 PM

Reply
3 replies

Jan 12, 2010 6:49 PM in response to chocfruit

Hi Melissa

This will copy the active work sheet of your open work book.

tell application "Microsoft Excel"
activate
copy worksheet active sheet
end tell

or if you want to specifically target a work sheet, say sheet2 you could use the below.

tell application "Microsoft Excel"
activate
copy worksheet sheet "sheet2"
end tell



Budgie

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Copy a worksheet from one Excel file to another Excel file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.