Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confine Activex button in Excel

Status
Not open for further replies.

holgi123

Technical User
Sep 4, 2004
43
AU
Hi there,

I have a button on an Excel spreadsheet with some VBA code. On click it changes the location as well as the caption.
I have tried many ways to limit the movement of the button after the click event to a certain range, i.e. "D5:G10" but so far not successful.

Could someone may be give me an idea as to how to do this?

Many thanks for any help.
 



Hi,

In design mode, right-click the control and select Format Control - Properties Tab.

Select the appropriate Object Positioning option.


Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Thank You for your suggestion.

However I could only find the Properties Tab on a Form Control and not an an ActiveX Control.

Any other idea how to solve this?

Thank You again for your help.
 
You need to be in design mode 1st. To get there, click on the turquoise "set square" in the VBA toolbar

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top