Error running simple command
Hmmm...it works for me. How are you calling it?
Note that you can make it a bit shorter:
Public Function LockWindowSize(argLock As Boolean)
ActiveWindow.EnableResize = Not argLock
End Function
In article ,
quartz wrote:
I have the following function which generates "Object defined" error (please
correct for line wrapping):
Public Function LockWindowSize(argLock As Boolean)
If argLock = True Then ActiveWindow.EnableResize = False Else
ActiveWindow.EnableResize = True
End Function
Can someone fix this for me? I am attempting to disable the currently active
window from being resized. Thanks much in advance.
|