Form Behind Other Windows

momo007

New Member
Joined
Jul 10, 2004
Messages
33
Hi, just wondering if anyone can quickly tell me how to set a form to be on top of other windows/workbooks/forms. I know if I want to make a workbook on top, I'll use something like workbook.activate - but how do I do it with forms?

Thanks.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try with:

'Show 2 user forms on screen
Userform1.Show vbModeLess
Userform2.Show vbModeLess

'Userform1 on top
Userform1.Show vbModeLess


Ciao...
 
Upvote 0
Thanks but that gives me an error saying form is already showing.

Exactly what I'm trying to do is I have included a file browser on my form, when the user clicks on a button, the file browser comes up. Then when the user selects a file, the file browser closes, but then the form will go behind my other windows (eg windows explorer, IE etc) for some reason.

Can someone please help?? THanks!!
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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