Re: Chip Pearson Import/Export Macros - Added Twist
From: Chip Pearson (chip_at_cpearson.com)
Date: 04/04/04
- Next message: samanathon: "Re: Dynamically adding data to a Combobox?"
- Previous message: Bob Phillips: "Re: Is ther a way to change the interior.colorindex of multiple rows"
- In reply to: saturnin02: "Re: Chip Pearson Import/Export Macros - Added Twist"
- Next in thread: David McRitchie: "Re: Chip Pearson Import/Export Macros"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 4 Apr 2004 15:56:09 -0700
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 news:OWdbmZpGEHA.408@TK2MSFTNGP10.phx.gbl... > 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, >
- Next message: samanathon: "Re: Dynamically adding data to a Combobox?"
- Previous message: Bob Phillips: "Re: Is ther a way to change the interior.colorindex of multiple rows"
- In reply to: saturnin02: "Re: Chip Pearson Import/Export Macros - Added Twist"
- Next in thread: David McRitchie: "Re: Chip Pearson Import/Export Macros"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|