Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50163

replacement in files

$
0
0
Hello,

I need to analyze a file, but firts I have to remove the crlf-characters from it, if there are.


I do it with this code
Code:


For j = 1 To Len(c01) Step 355 'The file has 355 long records without crlf, the file itself is the c01 var.
C02 = Mid(c01, j, 355)
c02 = Replace(Mid(c01, j, 355), vbCrLf, CR)
next

How can check, if any replacement has been done during the run?

Many thanks

Viewing all articles
Browse latest Browse all 50163

Trending Articles