Question : Why does Excel 2003 crash intermittently when this line is run?

Hi All - Sometimes when I run this loop it will intermittently crash Excel all together where it has to recover my spreadsheets?  Basically I was having problems running the loop where the formatting was different.  One string was a number and the other was a string.  The if statement was if a <> b then and it was running the if statement but the values were the same!  I tried using .value after and that didn't work so I decided to try using the str() function.
Code Snippet:
1:
2:
tc1 = Str(Workbooks("NewRecon2.xls").Sheets("Data").Range("C" & X))
tc2 = Str(Workbooks("output.csv").Worksheets(1).Range("K" & Y))

Answer : Why does Excel 2003 crash intermittently when this line is run?

A crash is pretty severe. How do you know it's one of those statements? Have you tried rebuilding your workbook? Can you upload your workbook?

Kevin
Random Solutions  
 
programming4us programming4us