I'm trying to hide a UserForm in Excel and display a small userform in it's place that when the smaller form is clicked, the small form disappears and the original form reappears in its original place. The idea is basically to hide (or minimize) the large form so the user can more easily access the worksheet behind the form, and then bring the form back as desired.
I've got the basic workings of complete with one small dissatisfaction. The Form.top and Form.left properties and reset to 0 after Form.show and the window appears in the top left corner! I've implemented a way to store the original coordinates before doing a Form.hide and then restoring them after the Form.show but the form still appears in the wrong spot for a split second before moving to the correct spot and looks unprofessional. The top/left coordinate change can't be done after Form.hide and before Form.show because the properties can't be accessed.
I'm not set on doing this using Form.hide/show and swapping the coordinates, so if anyone has a better idea, I'm all ears.
Summary of problems:
- cannot change the Form.Visible property (read-only)
- when Form.hide is done, the Form.top and Form.left properties are inaccessible
- after Form.show is done, Form.top and Form.left are reset back to 0
I've got the basic workings of complete with one small dissatisfaction. The Form.top and Form.left properties and reset to 0 after Form.show and the window appears in the top left corner! I've implemented a way to store the original coordinates before doing a Form.hide and then restoring them after the Form.show but the form still appears in the wrong spot for a split second before moving to the correct spot and looks unprofessional. The top/left coordinate change can't be done after Form.hide and before Form.show because the properties can't be accessed.
I'm not set on doing this using Form.hide/show and swapping the coordinates, so if anyone has a better idea, I'm all ears.
Summary of problems:
- cannot change the Form.Visible property (read-only)
- when Form.hide is done, the Form.top and Form.left properties are inaccessible
- after Form.show is done, Form.top and Form.left are reset back to 0