ACC2000: Exported Line Separator Is Converted IncorrectlyID: Q198498
|
Moderate: Requires basic macro, coding, and interoperability skills.
If you export a Microsoft Access table that contains line separators to
Microsoft Excel format, the line separators will not appear as expected in
Microsoft Excel. Instead, you see two vertical characters where the line
separators should be.
To avoid this behavior, when you export from Microsoft Access, in the Export dialog box, click the Save Formatted option, and then click Save.
However, if you are unable to re-export the data from Microsoft Access, you
can eliminate the vertical bar characters from the Microsoft Excel
spreadsheet as follows:
Sub changeStr()
EndCell = Range("A1").SpecialCells(xlCellTypeLastCell).Address
ActiveSheet.Range("A1:" & EndCell).Replace _
What:=Chr(13) & Chr(10), Replacement:=Chr(10), _
SearchOrder:=xlByColumns, MatchCase:=True
End Sub
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Additional query words: pra
Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 13, 1999