Thanks. Erm....I don't know but it doesn't seem to be obeying the "&& workWindow.LD2nd.visible == true" condition before executing the whole code. Is there something I'm missing?