PC Review


Reply
Thread Tools Rate Thread

Create Export CSV file From Worksheet

 
 
=?Utf-8?B?Sm9lIEsu?=
Guest
Posts: n/a
 
      21st Nov 2007

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,
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um9nZXIgQ29udmVyc2U=?=
Guest
Posts: n/a
 
      21st Nov 2007
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


"Joe K." wrote:

>
> 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,

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create an export file using user generated title and export data t efandango Microsoft Access VBA Modules 6 5th Oct 2008 02:50 PM
Create an export file using user generated title and export data t efandango Microsoft Access External Data 6 5th Oct 2008 02:50 PM
Export worksheet in New File by VBA code shahzad4u_ksa@yahoo.com Microsoft Excel Programming 3 5th Jul 2007 03:53 PM
Macro to export a worksheet and save as new file Mike_M Microsoft Excel Programming 2 25th May 2005 10:37 AM
Export to specific worksheet in Excel file Chuck Microsoft Access Form Coding 1 17th Mar 2004 09:51 AM


Features
 

Advertising
 

Newsgroups
 


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