The code that I have put together (attached) looks for the occurances of “CHASIS_1” and returns the value next to “T 12=” in the file called “a_test.txt” (also attached). The problem that I get the “T 12=” values for CHASIS_2 rather than CHASIS_1. When I use the “step in” function in the VBA editor everything seems to works fine, but when I run the procedure “TestProc”, I get this:
CHASIS_1 0 23
CHASIS_1 120 99.999
CHASIS_1 240 99.999
What I should be gettign is this:
CHASIS_1 0 23
CHASIS_1 120 21.765
CHASIS_1 240 21.765
Can anyone give me some idea as to why this happens?