LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Saving a column of data in another file format

Hi,

I want to copy data in column A (starting from row number 2 to variable
length) and save it as a *.sps file. (Formats dont matter, just the values
to be copied)

Basically .sps is syntax file format of SPSS.

I Started the macro recorder and then copied the specified range, went to --
Start -- Run -- Notepad - Ctrl +V - Ctrl +S - then choose file extension as
all files and typed the name as -- trying.sps -- (I didnt open SPSS and then
a new syntax file and then paste it there because it takes some time, so i
thought why not paste in to Notepad and save it as *.Sps extension. ---
Basically if a notepad is saved as .sps extension it cane be opened up in
spss for viewing)

And the result was

Sub Macro1()

Range("a2:a2050").Select
Selection.Copy

End Sub

Macro recorder has not recorded any action outside the excel environment.
How do I go about it?

I have modified the above code to below.. Please guide me beyond this.

Range(Cells(2, "a"), Selection.End(xlDown)).Select
Selection.Copy


Thanks a lot,
Hari
India


 
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
Saving in new file format moon Excel Discussion (Misc queries) 2 November 11th 09 06:12 PM
Saving File Format Raz Excel Worksheet Functions 2 November 27th 08 05:32 PM
Cell changes format upon saving file victorsm Excel Discussion (Misc queries) 3 November 13th 08 03:50 AM
Saving file in CSV format meeta das Excel Discussion (Misc queries) 2 February 15th 06 12:41 PM
Saving file to *.prn format JON JON Excel Programming 12 December 2nd 04 12:08 PM


All times are GMT +1. The time now is 10:56 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"