Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Lock a variable

I need to know how to execute a macro to lock a variable

I have this but it only works in one sheets, when I change of sheet the lock function stop to works

Sub Lock
Set q = ActiveDocument
q.LockAll
end sub

1 Reply
vupen
Partner - Creator
Partner - Creator

Call the same sub using the OnActivateSheet macro trigger.