![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am pretty new to excel programming but have had a recent
success. I have a command button that sits in cell C2 (I have sized the command button so that it is the same size as C2). The command button runs a quick snippet of code to add one to the value of C3. What I would like to do is to have the command button resize to match cell C2 if cell C2 size is changed. Eg., I change column C's width with the mouse, the command button changes. I am also wondering if the best way to go about this is to somehow link the cell to the command button in the beginning, like what happens when data validation is used to create a combo box in cell. Thanks in advance. |
| Ads |
|
#2
|
|||
|
|||
|
Hi,
Right Click the command button and select Format control and from the Tab Properties select move and size with cells. (I think this is the default behaviour - atleast in XP) Abdul Salam >-----Original Message----- >I am pretty new to excel programming but have had a recent >success. I have a command button that sits in cell C2 (I >have sized the command button so that it is the same size >as C2). The command button runs a quick snippet of code >to add one to the value of C3. > >What I would like to do is to have the command button >resize to match cell C2 if cell C2 size is changed. Eg., >I change column C's width with the mouse, the command >button changes. > >I am also wondering if the best way to go about this is to >somehow link the cell to the command button in the >beginning, like what happens when data validation is used >to create a combo box in cell. > >Thanks in advance. >. > |
|
#3
|
|||
|
|||
|
Thanks! Just what I was looking for, and I wouldn't have
found that for a long time. >-----Original Message----- >Hi, > >Right Click the command button and select Format control >and from the Tab Properties select move and size with >cells. (I think this is the default behaviour - atleast >in XP) > >Abdul Salam > >>-----Original Message----- >>I am pretty new to excel programming but have had a >recent >>success. I have a command button that sits in cell C2 >(I >>have sized the command button so that it is the same >size >>as C2). The command button runs a quick snippet of code >>to add one to the value of C3. >> >>What I would like to do is to have the command button >>resize to match cell C2 if cell C2 size is changed. >Eg., >>I change column C's width with the mouse, the command >>button changes. >> >>I am also wondering if the best way to go about this is >to >>somehow link the cell to the command button in the >>beginning, like what happens when data validation is >used >>to create a combo box in cell. >> >>Thanks in advance. >>. >> >. > |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| copy cell by command button | kalpesh | Excel Worksheet Functions | 1 | December 28th 11 08:41 PM |
| Command button font size changes | AJ | Excel Discussion (Misc queries) | 0 | June 27th 08 03:28 AM |
| Command button depending on Cell Value | Steve[_11_] | Excel Discussion (Misc queries) | 1 | January 14th 08 11:34 AM |
| Font Size in Command Button | Jones E | Excel Discussion (Misc queries) | 2 | April 28th 06 08:11 PM |
| How do i clear a cell using a command button? | Mariann | Excel Discussion (Misc queries) | 1 | March 30th 06 09:15 PM |