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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
My apologies...it works now.VoG, sorry I was careless again!!!
 
Last edited:

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
VBmodeless is working fine now but can i make the form be always in the top right corner automacticaly????:biggrin:
 
Last edited:

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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
 

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
VoG, that was a new learning...perfect...thanks alot!!!!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,484
Messages
5,770,364
Members
425,612
Latest member
martinijr

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
Top