Locking button to a cell/range

  • Thread starter Thread starter Nacho Nachev
  • Start date Start date
N

Nacho Nachev

Hello,

I have a button on a worksheet that has to stay always in the boundaries of
the cell/range I put it on. I.e. I need lo somehow "lock" it to the
cell/range.

Which is to correct way to do it programattically?

Thank you for your time,
Nacho
 
Assuming you're asking about a command button from Control Toolbox or a
button from the Forms toolbar, you can prevent a user from selecting and
moving it by protecting the worksheet (Tools, Protection, Protect Sheet).

If you're asking about a toolbutton on a toolbar, these are intended to
float above the worksheet, not to be tied down to a particular cell.

--
Jim Rech
Excel MVP
| Hello,
|
| I have a button on a worksheet that has to stay always in the boundaries
of
| the cell/range I put it on. I.e. I need lo somehow "lock" it to the
| cell/range.
|
| Which is to correct way to do it programattically?
|
| Thank you for your time,
| Nacho
|
|
 
It's a Control Toolbox button. This will disable modifications of the whole
worksheet, which is unwanted in my case. I guess there is not other way, so
I should put up with this.

Thanks,
Nacho
 

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