Dialog/Form box allow screen interaction?

Ouka

New Member
Joined
Mar 28, 2011
Messages
17
Hi All,

Stupid question, answer isn't in one of my reference books that I've seen so far:

Is there a type of dialog box or form setting that will allow worksheet/form interactions of screens under the dialog box while leaving said box on top of all the other screens?

i.e. I want to pop up a warning dialog box to my users but allow the user to make final review/edits to the data before continuing. So I would like to leave a moveable dialog box open while my users click under it to the worksheets/forms that are open.

Is this possible?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
UserForms and Message Boxes both have a modal property that can be set to false, allowing for the kind of interaction with the worksheet you are asking about.

It is possible for a message box to be modeless, so that it can float on the screen and stay visible as you scroll and select various worksheet ranges:

Code:
 Private Declare Function MessageBox _
        Lib "User32" Alias "MessageBoxA" _
           (ByVal hWnd As Long, _
            ByVal lpText As String, _
            ByVal lpCaption As String, _
            ByVal wType As Long) _
        As Long
 
Sub ModalMessageBox()
MessageBox &H0, "This is a modeless Message Box", "Modeless test", vbSystemModal
End Sub

For userforms, call the form as
UserForm1.Show 0

where 0 = False, or vbModeless
 
Last edited:
Upvote 0
Just change your form's 'ShowModal' property to 'FALSE' to get the functionality you are looking for.
 
Upvote 0
Thanks all, knew it was a stupid question. Hard to find something in a reference book when you don't know the name of the feature!

-o
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top