Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Create Export CSV file From Worksheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe K. - 21 Nov 2007 16:36 GMT
I would like to export my SAVES worksheet to a new spreadsheet.  I would
like to copy only Cells A25 to ZT65536.

Path to new spreadsheet is: C:\Temp
File Name is: SAVES.csv

Please help with this tasks.

Thanks,
Roger Converse - 21 Nov 2007 17:03 GMT
This seems pretty simple.  You should be able to record a macro that selects
the data and then opens a new file, pastes the data and saves to your c drive.

The VBA behind it would look something like this:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 11/21/2007 by Roger Converse
'
' Keyboard Shortcut: Ctrl+w
'
   Range(Selection, Selection.End(xlToRight)).Select
   Range(Selection, Selection.End(xlDown)).Select
   Selection.Copy
   Workbooks.Add
   ActiveSheet.Paste
   Application.CutCopyMode = False
   ActiveWorkbook.SaveAs Filename:= _
       "C:\temp\saves.csv", FileFormat:= _
       xlCSVMac, CreateBackup:=False
   Range("A1").Select
End Sub

> I would like to export my SAVES worksheet to a new spreadsheet.  I would
> like to copy only Cells A25 to ZT65536.
[quoted text clipped - 5 lines]
>
> Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.