Avatar

Level 10

Hi,

That is what I would expect. The for loop is working through each instance of TRANSMITTAL and passing it to the function (LockAllFields) in the script object (varLOCK). Everything (except buttons) in all instances of TRANSMITTAL will be locked.

Objects outside of TRANSMITTAL should remain open.

Are you trying to lock only the last instance of TRANSMITTAL?

Niall