vbModeless doesn't work

hunna

Board Regular
Joined
Nov 3, 2011
Messages
57
Hello, I call Userform through click button on data sheet. My problem is I want to work on worksheet while Userform is still active. I tried to use the code but it doesn't work.

Code:
Private Sub Workbook_Open()
    XcelL.Show vbModeless 'Or vbModal
End Sub
PS. I add this code in modul1.

Anybody can help?

Thanks,
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
In what way does it not work?
 
Upvote 0
That code should be in the ThisWorkbook module if you want it to run when you open the workbook (if not, don't call it Workbook_Open) but it should work fine.
 
Upvote 0

Forum statistics

Threads
1,222,245
Messages
6,164,794
Members
451,917
Latest member
WEB78

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