You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,6 +74,8 @@ Public Property Let State(v As ERibbonState)
65
74
Select Case State
66
75
Case RibbonAlwaysShowRibbon
67
76
'Do nothing
77
+
case RibbonProtectedViewMode
78
+
CallApplication.ActiveProtectedViewWindow.Edit
68
79
case WordViewFullScreenMode
69
80
if Application.Name <> "Microsoft Word"then Err.Raise 1, "stdRibbon#State[Let]", "WordViewFullScreenMode found in non Word Application. This should never happen."
70
81
oApp.ActiveWindow.View.FullScreen = False
@@ -89,6 +100,8 @@ Public Property Let State(v As ERibbonState)
89
100
Select Case v
90
101
Case RibbonAlwaysShowRibbon
91
102
Exit Property
103
+
Case RibbonProtectedViewMode
104
+
Err.Raise 1, "stdRibbon#State[Let]", "WordProtectedViewMode can only be entered by opening a document in Protected View"
92
105
case WordViewFullScreenMode
93
106
if Application.Name <> "Microsoft Word"then Err.Raise 1, "stdRibbon#State[Let]", "WordViewReadMode is only supported in Word"
0 commit comments