Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a need to save data from some spreadsheets as a pipe (|) delimited file. I've been able to import data that way, but have yet to figure out a way (short of writing each cell individually) into this format. Anyone know of a way to preserve the | delimiter after reading in the file?
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Some suggestions.
1. In Excel, save the file as "Comma Delimited (*.csv)", then open i in Notepad, replace all comma characters with pipe characters, and the save the file as "Text Documents (*.txt)". 2. After editing in Excel, insert a new column A and add a formula t concatenate each cell from column B onwards, with a pipe character i between, e.g. =B1&"|"&C1&"|"&D1. Copy this formula for all cells i column A, then convert these formulas to values before deleting column B onwards. Save the file as "Text (Tab delimited) (*.txt)". The pip delimiter will remain. 3. Write a macro to do either of the above -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try changing your windows settings.
In win98: windows start button|settings|control panel|regional settings applet| Number tab At the bottom is a list separator. Change it to the pipe. Remember that this is a windows property and may affect other programs. rwebster3 wrote: I have a need to save data from some spreadsheets as a pipe (|) delimited file. I've been able to import data that way, but have yet to figure out a way (short of writing each cell individually) into this format. Anyone know of a way to preserve the | delimiter after reading in the file? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving as text(tab delimited) file | New Users to Excel | |||
Copying data to new workbook and saving as text delimited | Excel Discussion (Misc queries) | |||
Macro that stores all sheets as tab-delimited text files | Excel Discussion (Misc queries) | |||
saving file as text(tab delimited)... | Excel Discussion (Misc queries) | |||
saving excel file as tab delimited text programmatically | Excel Programming |