LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Chip Pearson Import/Export Macros - Added Twist

Try something like the following code:

Dim FName As String
Dim FNum As Integer
Dim Rng As Range
FName = "C:\Test2\Test2.txt" ' change as desired
FNum = FreeFile()
Open FName For Output As #FNum
For Each Rng In Selection.Cells ' change range as desired
Print #FNum, Rng.Text
Next Rng
Close #FNum


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"saturnin02" <saturnin02_at_hotmail.com wrote in message
...
Chip,
Everything works good with the export to text macro.
I need to modify it to reflect a specila twist so that another program can
read it, and that is I want the macro to export all cell values as text,

but
put each cell value in one column only i.e. in destination file.

A1 A2 A3
B1 B2 B3

to
A1
A2
A3
B1
B2
B3

Is it possible to modify it that way?
Sorry, put I am using a program in DELPHI that will only import text files
with values in one column only.

Let me know.
Tx,





 
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
Thank you Chip Pearson Michael Excel Discussion (Misc queries) 3 February 5th 05 08:35 PM
Question to Chip Pearson Doug[_9_] Excel Programming 2 January 19th 04 03:56 PM
Chip Pearson Ricardo[_2_] Excel Programming 0 November 10th 03 07:51 PM
CHIP PEARSON - THANX bertieBassett Excel Programming 0 November 3rd 03 02:01 PM
Chip Pearson or someone Chip Pearson Excel Programming 3 September 18th 03 05:22 AM


All times are GMT +1. The time now is 07:20 AM.

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"