Try using the replace function on the other chars you are encountering.
strNewString = replace(trim(strOrigString), vbTab, "")
something like that maybe
"Stefano" wrote:
[Quoted Text] > I'm using the TRIM function to remove leading and trailing spaces from a > string read from a file. > The problem is that I found the file may contains also trailing characters > different from spaces ( ie Tab character ) which the TRIM function does not > remove . > > How can I effectively trim out all such characters from the string read ? > Thanks >
|