Code – Enable active workbook for editing
Sub Enable_Edit() If Application.ProtectedViewWindows.Count > 0 Then Application.ActiveProtectedViewWindow.Edit End If End sub
Sub Enable_Edit() If Application.ProtectedViewWindows.Count > 0 Then Application.ActiveProtectedViewWindow.Edit End If End sub