Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default make new .xls file

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default make new .xls file

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
possible to make a formula from 1 file to be used on a different f rckbryn Excel Discussion (Misc queries) 0 March 30th 09 06:42 AM
how to make a back-up .xlk file tony Excel Discussion (Misc queries) 3 September 29th 06 04:59 PM
in a excel file, how to make a menu item for the .xls file that when clicked on it runs myform.show? example plz Daniel Excel Worksheet Functions 1 July 7th 05 03:52 AM
Make a file read only Michael Singmin Excel Programming 1 November 3rd 03 07:45 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"