Marc
I haven't seen controls randomly relocating themselves so I'm not sure why you are having these issues. The position you put the object should be the position it shows up as when the form is displayed UNLESS you have code also running that either hides or moves it. Looking at your code, there is some confusion as to whether you are aiming at 114/504 or 134/24 but lets assume you have checked through all your code and verified that no code is actually moving the control.
One left field possibility (since you have obviously been working on this issue for a while) is that you have made two copies of the userform and are inadvertently editing one but displaying the other.
It is a bad idea to programmatically rename controls. Change the value of the displayed label or content in the control by all means but don't go changing the name of the control.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|