(This seems to be my regular comment this morning)
Hi IQ
Can you please tell us what you are trying to accomplish with all this? At the moment it looks much more like a classroom exercise than a piece of code that is trying to accomplish a serious purpose.
Part of the problem (I too got the debug when I started clicking buttons indiscriminately) is that you seem not to have a good understanding of how forms get .Shown
The default way of Show-ing a userform is Modal. This means that all activity stops until the form is dismissed. In turn, thuis means that the lines of code after Userform1.Show, won't get executed while that form is visible, so your attempts to change color are doomed!
Let's follow the progress of the forms that you have. The application starts by showing Userform3 (when the workbook opens). The only meaningful action on Userform3 is the Proceed button, which showsUserform1. You now have Userform3 and Userform1 loaded and visible.
On Userform1 you have buttons to display the other forms.
ON page you have a pretty wel identical set of pages and buttons:
So now let's try and predict what will happen:
UserForm3 starts Can only go to UserForm1
Userform1 can go to forms 2 or 3, in each instance trying to Show them)
ShowForm2 Succeeds (User form3 and userform1 are still visible)
ShowForm3 FAILS - Userform3 is still visible, and can not be redisplayed modally (which is the default)
At this point your original question is answered, so fair dos! You asked a qyestion and I answered it - I asked you a couple of questions. Would you please answer them, and then we might get a little closer to solving your problem!
HTH
Tony
Bookmarks