View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default Copying to another Workbook

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.

--

Vasant


"Dthmtlgod" wrote in message
...
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?