C
cyberdude
Hi,
I put a userform in my VBA code. Textbox1 contains a string which is
the most important result of the userform. Its length increases as
the programme runs. The string can be very long.
Due to some unknown reasons or bugs, the programme halts occasionally
and it prompts me to either detect the error or end the programme. As
a result, the string in textbox1 is lost.
I want to do some rescue action when the programme halts. Therefore,
I figure out the following way to do it: I want to save the string in
textbox1 whenever its length changes. Hence, I need to open a file,
save the string in textbox1 in that file and close it. So, I hope
that someone can tell me how to do these steps.
In addition, I would like to know if there is another better or easier
way to get the string recovered if the programme halts. Thanks.
Mike
I put a userform in my VBA code. Textbox1 contains a string which is
the most important result of the userform. Its length increases as
the programme runs. The string can be very long.
Due to some unknown reasons or bugs, the programme halts occasionally
and it prompts me to either detect the error or end the programme. As
a result, the string in textbox1 is lost.
I want to do some rescue action when the programme halts. Therefore,
I figure out the following way to do it: I want to save the string in
textbox1 whenever its length changes. Hence, I need to open a file,
save the string in textbox1 in that file and close it. So, I hope
that someone can tell me how to do these steps.
In addition, I would like to know if there is another better or easier
way to get the string recovered if the programme halts. Thanks.
Mike