XL2000: How to Temporarily Hide a UserForm (213744)
The information in this article applies to:
This article was previously published under Q213744 SUMMARY
In versions of Microsoft Excel earlier than Excel 97, if you use the Hide method to hide a custom dialog box, Excel does not hide the dialog box until the macro that contains the Hide method is finished running.
In Excel 2000, if you use the Hide method to hide a UserForm, the UserForm is hidden immediately. You can redisplay the UserForm later by using the Show method in a macro. You can also use the Unload statement to hide a UserForm; however, if you do so, any settings in the UserForm are lost. Note that you may want to use the Unload statement if you want to reset the UserForm.
This article explains how to create a UserForm and contains a sample Visual Basic for Applications macro that temporarily hides the UserForm (using the Hide method and the Unload statement).
REFERENCESFor more information about hiding UserForms, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type hide method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about unloading UserForms, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type unload statement in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213744 |
---|
|