Resize and put the button in correct position automatically

luolovepi

Board Regular
Joined
Jun 9, 2011
Messages
116
Dear all,

I made a worksheet which has a button at the beginning of each row. And I manually set the button as large as the cell.
And I use "wrap text" function in my excel worksheet. When I type a long text into the cell, the height of cell will be enlarged automatically.
However, the button size won't change and they won't move according to row, which means now the row with long long text may contain more than 1 buttons. That is not what I want. I want one row on button and the button will stick to a particular row.
I also want to resize my buttons according to the current cell size automatically.

Anybody knows how to do it?
Thank you very much!!

lolo^-^
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
1. Right-click on button
2. Format Control...
3. Properties
4. Move and size with cells
 
Upvote 0
Hi Sektor,

Do you know how to adjust the area where button name is shown?
I want to button caption to be shown. Then button size is fixed. And the caption font is set to be 8 by myself. If font size is too small, the user can't recognise it. So I don't want to change the font size, but I want the full caption to be shown on the button. Is there any way to achieve this?

Thank you!

Best regards,
lolo^^

1. Right-click on button
2. Format Control...
3. Properties
4. Move and size with cells
 
Upvote 0
1. Right-click on button
2. Properties
3. Font (click on three dots in the right side)
 
Upvote 0
Hi Sektor,
Thank you so much!
I have another question over copying a range of values to another range. These two ranges are in different workbook.
My code to do this is:
Code:
GLB_rngToPaste.Value = GLB_rngToCopy.Value
I confirm that GLB_rngToCopy has gotten the correct range of values.
But GLB_rngToPaste only received the first value of GLB_rngToCopy range.

I tested this kind of range to range assignment in the same worksheet, it could work. Can't it apply to ranges in different workbook or worksheet?

Hope you could help me if you happen to know it.
Thanks!!:)
Rgds,
lolo ^-^<!-- / message --><!-- edit note -->
1. Right-click on button
2. Properties
3. Font (click on three dots in the right side)
 
Upvote 0
Hi Sektor,
I think copy can't be done like this. I couldn't solve the problem and then have changed my range copy to cell-to-cell copy already. And it works fine.

Thank you!

Best regards,
lolo
Code:
GLB_rngToCopy.Copy GLB_rngToPaste
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top