vbModeless does not work why? Pls help!

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
<TABLE style="WIDTH: 539pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=719 border=0><COLGROUP><COL style="WIDTH: 539pt; mso-width-source: userset; mso-width-alt: 26294" width=719><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 539pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=719 height=17>When I open my workbook, Userform shows but not Modeless…I can't click on the background!</TD></TR></TBODY></TABLE>


Code:
[SIZE=1]Private Sub Workbook_Open()[/SIZE]
[SIZE=1]UserForm1.Show vbModeless[/SIZE]
[SIZE=1]End Sub[/SIZE]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
My apologies...it works now.VoG, sorry I was careless again!!!
 
Last edited:
Upvote 0
VBmodeless is working fine now but can i make the form be always in the top right corner automacticaly????:biggrin:
 
Last edited:
Upvote 0
Try this in the userform's code module

Code:
Private Sub UserForm_Activate()
With Me
    .Left = Application.Width - .Width
    .Top = 0
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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