Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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
|
|




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADD A BUTTON TO A CELL TO DELETE A RANGE OF CELLS? traveye Excel Discussion (Misc queries) 5 November 5th 07 12:57 PM
dissable some button or range of cell for a prticular sheet NAEEM Excel Discussion (Misc queries) 3 September 27th 07 09:17 AM
Locking range in SUM timsantiago Excel Discussion (Misc queries) 1 November 13th 05 08:03 PM
Locking range for view of Excel Sheet on button click sameerce[_21_] Excel Programming 1 July 15th 04 01:09 PM
Locking command button size to cell proportions? Jamison Excel Programming 2 August 4th 03 02:47 PM


All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"