Sub ScreenUpdatingOff()
With ThisComponent
.CurrentController.Frame.ContainerWindow.Enable = False
If Not .isActionLocked Then .AddActionLock
If Not .hasControllersLocked Then .lockControllers
End With
End Sub
Sub ScreenUpdatingOn()
With ThisComponent
If .hasControllersLocked Then .unlockControllers
If .isActionLocked Then .removeActionLock
.CurrentController.Frame.ContainerWindow.Enable = True
End With
End Sub
Is there redundancy in the code?
So far I have used two methods, lockControllers and unlockControllers, but there was no complete lock. I would like @erAck to answer this question too. Thanks.