I have a multipage control in my userform (uf9_poststaff). It has three pages. The first page, the main page, holds a value of 0. This main page is the default page that the user is returned to after they complete some processes on a second opened userform (uf9c_cancel). The "CANCEL" button on userform uf9c_cancel closes that userform and returns the user to the default (first) page of the multipage control of userform uf9_poststaff.
Here is the code ...
What I am experiencing isn't what I was hoping. The focus does change from the other pages to page 0 (the main default page), but that page's contents remain from the previous page. So the tab highligh changes, but the contents do not match that of that page. That page (page 0) continues to host the contents of either page 1 or 2, whatever it was last on. Should it be triggering the multipage change event? If so, it isn't. I use mbevents = true / false to suppress control triggers when initializing userforms. At this point in my code, mbevents = false, but even if in trial, I include the line mbevents = true before the coded multipage change to 0, I still get the wrong result.
Where have I gone wrong? Thoughts? Solutions?
Bookmarks