Question about the .move option

  • Thread starter Thread starter TyeJae
  • Start date Start date
T

TyeJae

When a certain button is clicked I would like to move the combo box o
my form to a different location. Can someone give me an example of ho
to do this so I can play around with it and tailor it to my form.

Thanks,
TyeJa
 
Here's some sample code


Private Sub CommandButton1_Click()
Dim oOLE As OLEObject

Set oOLE = ActiveSheet.OLEObjects("Combobox1")
With oOLE
.Left = 200
.Top = 100
End With

End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
I have been playing around with this for a while and I just can no
figure out the format
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top