Do userforms need special initialization?
I have two userforms, userform1 and userform2. Excel crashes when it comes to the line "userform2.show".
I checked both forms' properties in the debug window. Userform1.name was userform1. That is fine. However, when it comes to userform2.name, the debug window showed "< Object variable or With block variable not set>" and its type was integer, not string.
I have codes in userform1's initialization routine but not userform2's. That makes me wonder whether I need to initialize userform2.
I have two userforms, userform1 and userform2. Excel crashes when it comes to the line "userform2.show".
I checked both forms' properties in the debug window. Userform1.name was userform1. That is fine. However, when it comes to userform2.name, the debug window showed "< Object variable or With block variable not set>" and its type was integer, not string.
I have codes in userform1's initialization routine but not userform2's. That makes me wonder whether I need to initialize userform2.