![]() |
Locking button to a cell/range
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 |
Locking button to a cell/range
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 "Nacho Nachev" wrote in message ... | 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 | | |
Locking button to a cell/range
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 "Jim Rech" wrote in message ... 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 "Nacho Nachev" wrote in message ... | 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 | | |
All times are GMT +1. The time now is 06:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com