Affichage des articles dont le libellé est text box location in form using VBA. Afficher tous les articles
Affichage des articles dont le libellé est text box location in form using VBA. Afficher tous les articles

text box location in form using VBA

lundi 30 mars 2015

I have one text box with the name of nametxt and one it's label with name of namelabel. I want to relocate this text box with it's label when the button02 is clicked to the new location. Thus i have tried using this code:


Code:



Private Sub Command02_Click()

nametxt.Top = 0.2083

nametxt.Left = 1.0833

namelabel.Top = 0.2083

namelabel.Left = 0.5833

End Sub



But this code is not working correctly and relocate the text box to the up left corner of form. How fix this issue.

I waiting for your help.

thanks,

text box location in form using VBA

Labels