Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all.
Using xl xp pro Would like to create a new empty .xls file C:\windows\temp\data.xls Have read through this ng quite a bit Can't seem to find anything All threads about saving current wb with save as However control.xls has other data I don't want to send to end-users just want to copy data from 3 sheets in control.xls to ....data.xls --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi goss
Would like to create a new empty .xls file Sub test() Dim NWB As Workbook Set NWB = Workbooks.Add NWB.SaveAs "C:\Data\data.xls" NWB.Close False End Sub just want to copy data from 3 sheets in control.xls to ....data.xls Use this macro with control.xls as the activeworkbook Sub test2() Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Copy Set wb = ActiveWorkbook wb.SaveAs "C:\Data\data.xls" wb.Close False End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "goss " wrote in message ... Hi all. Using xl xp pro Would like to create a new empty .xls file C:\windows\temp\data.xls Have read through this ng quite a bit Can't seem to find anything All threads about saving current wb with save as However control.xls has other data I don't want to send to end-users just want to copy data from 3 sheets in control.xls to ....data.xls --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
possible to make a formula from 1 file to be used on a different f | Excel Discussion (Misc queries) | |||
how to make a back-up .xlk file | Excel Discussion (Misc queries) | |||
in a excel file, how to make a menu item for the .xls file that when clicked on it runs myform.show? example plz | Excel Worksheet Functions | |||
Make a file read only | Excel Programming |