Hello all. I've come across an interesting problem that I believe is due to non-printable control characters, etc. At least I "think" this is the problem. The "Trim" function doesn't work as expected for one thing. When I display the record being read in with VBA from a text/html file (using Line Input #1, strRecIn), it appears to be a string of blanks 17 characters long. I've set break points and attempted to display the field in the immediate window and Len(strRecIn) returns 17. When I do a print Len(Trim(strRecIn)), it returns a 1, even though the cursor moves through 4 (seemingly blank) spaces. This in itself is not a problem, but my sequential read through the file seems to be thrown out of order. The text file was actually an HTML file behind a web page from which I'm trying to extract data. Doesn't it appear that control characters (or whatever) are getting in my way? Any help would be appreciated.
Glenn