By activate do you mean - enable. In other words have the button not visible or not enabled and on certain events make the button visible and enabled?
If so then
With buttonname
.visible = true
.enabled = true
End with
As for placing it at a certain position on the form. I have never tried to change the position but you could try....
With buttonname
.visible = true
.enabled = true
.top = xxxx (representing the pixel position of the top from the top of the form.)
.left = xxxx (representing the pixel position of the left of the button from the left of the form.)
End with
Let me know if it works. I know the visible and enabled work I usually place the button on the form and size it to the desired size and just disable it. I have had no real reason to move or resize a button.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.