Keep a Word VBA UserForm Visible When Document is Minimized
Question details
The user wants a modeless VBA UserForm to remain visible on the screen after the main Word document window has been minimized.
- Product
- Microsoft Word / VBA
- Device & OS
- not provided
- Scenario
- Running a modeless VBA UserForm and then minimizing the active document window.
- Observed behavior
- The modeless UserForm disappears when the main document is minimized, instead of staying visible on the screen.
Ensure your document is saved in a macro-enabled format before making structural changes, and verify that your macro security settings allow code to run properly.
Load the UserForm via the Word Startup Folder as an Add-in
Running the UserForm from a template loaded as a global add-in detaches its window dependency from a specific active document.
When a UserForm is attached to a standard document, minimizing that document hides all child windows, including the form. By converting your file into a template and loading it globally, the form operates independently of your active working documents.
Open your document, go to File > Save As, and choose 'Word Macro-Enabled Template (*.dotm)' as the file format.
Find your Word Startup folder. On Windows, this is typically located at '%appdata%\Microsoft\Word\STARTUP'.
Copy or move your newly created .dotm file into the STARTUP folder.
Close all instances of Word and reopen the application. The template will now load automatically as a global add-in.
Save the Document Directly as a Macro-Enabled Template
Sometimes, simply saving your working file as a macro-enabled template alters how the application handles attached objects and forms.
Consult Advanced VBA Resources for Windows API Solutions
If standard application behaviors persist, you may need to use advanced Windows API calls to change the UserForm's parent window.
Try WPS Office for Your Document and Macro Needs
If you frequently encounter complex windowing and VBA limitations in Microsoft Word, consider trying WPS Office. It provides a lightweight, highly compatible environment for all your document tasks with an incredibly familiar user interface.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
- 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Open Your Documents: Launch WPS Writer and seamlessly open your existing templates and Word documents.

Frequently Asked Questions
What does a modeless UserForm mean in VBA?
A modeless UserForm, triggered by setting the ShowModal property to False or using 'UserForm.Show vbModeless', allows the user to continue interacting with the main Word document while the form remains open on the screen.
Why does my UserForm automatically disappear when Word is minimized?
In the Windows operating system architecture, VBA UserForms are created as child windows of the main application (Microsoft Word). When the parent window is minimized, Windows automatically hides all of its associated child windows.
Can Windows API calls prevent the UserForm from minimizing?
Yes. Advanced VBA developers often utilize Windows API functions like 'FindWindow' to locate the UserForm and 'SetParent' to assign the desktop as its parent window, preventing it from minimizing when Word is minimized.




