Copy sheet from one workbook to another.

N

Nick

Hello,

does anyone know the correct Access vba syntax for
copying a worksheet from one XL workbook to another XL
workbook?

Regards
 
S

Stephen Bullen

Hi Nick,
does anyone know the correct Access vba syntax for
copying a worksheet from one XL workbook to another XL
workbook?

Assuming you have an object referencing Excel, it's the Copy method:

SourceSheet.Copy TargetBook.Sheets(1)

copies it to the start of the target workbook.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk
 

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