Lock window maximized and fullscreen mode

cbrf23

Board Regular
Joined
Jun 20, 2011
Messages
241
Hi,

I need to lock the screen in fullscreen mode if a user does not have a certain security level. I can get the screen to be fullscreen, and hide the menus, and I've also disabled all keys except the ones they need for data entry, as well as disabled right click. I though I had it all covered, but I realized that if you put the mouse all the way up at the top of the screen and dbl-click, or click and drag, then the excel application window will exit fullscreen mode.

I've tried:
Code:
Private Sub Workbook_WindowResize(ByVal Wn As Window)
        If Not oSettings.AllowMenus Then
                If Application.DisplayFullScreen = False Then Application.DisplayFullScreen = True
        End If
End Sub

But this seems to only be triggered by the workbook's window within the application. Is there anyway to accomplish the same thing with the excel application window?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You are trying to make a so-called dictator application. This is not the easiest thing to (correctly) pull off...
I can only refer you to the chapter on dictator applications in the 'Professional Excel Development' book by Bullen, Bovey & Green, which contains everything you always wanted to know but were afraid to ask about dictator apps :)
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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