logo
search
VBA & Macro Problems

Keep a Word VBA UserForm Visible When Document is Minimized

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Save as a Template

Open your document, go to File > Save As, and choose 'Word Macro-Enabled Template (*.dotm)' as the file format.

2
Locate the Startup Folder

Find your Word Startup folder. On Windows, this is typically located at '%appdata%\Microsoft\Word\STARTUP'.

3
Move the File

Copy or move your newly created .dotm file into the STARTUP folder.

4
Restart Word

Close all instances of Word and reopen the application. The template will now load automatically as a global add-in.

Global Add-in Active: Your macro and UserForm are now available across all documents, allowing the form to stay visible when individual documents are minimized.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
  2. 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
  3. 3. Open Your Documents: Launch WPS Writer and seamlessly open your existing templates and Word documents.
Seamless compatibility with Microsoft Word (.docx, .dotm) formatsLightweight architecture that consumes fewer system resourcesFamiliar user interface for an easy transition from MS OfficeFree to download and use for essential document creation
microsoft office alternative - wps office

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.