Copying to another Workbook

  • Thread starter Thread starter Dthmtlgod
  • Start date Start date
D

Dthmtlgod

I want to copy data from one workbook (many sheets) to another workbook.
I want to do this behind the scenes. Don't want to have the end-user to see
this happening.

I know in FoxPro, using automation, I can visible to False.

Is this possible through VBA?
 
The following (untested) will copy all the sheets in the active wortkbook to
a new one.

Application.ScreenUpdating = False
ActiveWorkbook.Worksheets.Copy
ActiveWorkbook.SaveAs "c:\..............\NewName.xls"
ActiveWorkbook.Close False
Application.ScreenUpdating = True

To copy to an existing workbook, modify to suit.
 
Thanks

Application.ScreenUpdating = False

This is the command to keep everything hidden?

Doug
 
For the most part, yes.

--

Vasant

Dthmtlgod said:
Thanks

Application.ScreenUpdating = False

This is the command to keep everything hidden?

Doug


wortkbook
 

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