-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreen Settings.vb
44 lines (30 loc) · 1.34 KB
/
Screen Settings.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Sub SetFull_screen()
' This routine helps you activate the excel full screen feature. It best works when connected to a button or a shortcut.
' Check to see if fullscreen is already turned on
If ActiveWindow.DisplayWorkbookTabs = False And _
ActiveWindow.DisplayHorizontalScrollBar = False And _
ActiveWindow.DisplayVerticalScrollBar = False And _
Application.DisplayFullScreen = True _
Then
MsgBox "Full Screen already turned on"
Else
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False
Application.DisplayFullScreen = True
End If
End Sub
Sub ExitFull_screen()
' This routine helps you deactivate the excel full screen feature. It best works when connected to a button or a shortcut.
' Check to see if fullscreen is already turned off
If ActiveWindow.DisplayWorkbookTabs = True And _
Application.DisplayFullScreen = False And _
ActiveWindow.DisplayHorizontalScrollBar = True _
Then
MsgBox "Full Screen already turned off"
Else
ActiveWindow.DisplayWorkbookTabs = True
Application.DisplayFullScreen = False
ActiveWindow.DisplayHorizontalScrollBar = True
End If
End Sub