Sorting form controls

mbt2103

New Member
Joined
Aug 4, 2014
Messages
35
TLDR: Button objects, despite having the "move and size with cells" option selected, won't sort with cells in Excel 2010.

Details:
I made an awesome personnel tracker, complete with little "remove" buttons next to each employee that will archive the employee's data when clicked.

After removal, a ghastly blank spot is left. Deleting the entire row breaks other parts of the workbook, so I must sort to get rid of it.

I use the name of a button to tie it to the name of an employee, so an employee's button needs to stay in that employee's row.

Sorting does not move the buttons, even though "move and size with cells" is selected, and the column that the buttons exist in is included in the sort. Resizing a column or row properly resizes the button.

As a workaround I could use a button's location to tie it to the name of an employee, which wouldn't be so bad, but then each archival action would require all of the buttons below the one clicked to be moved up one row. Scripting that sounds painful, especially when the buttons are supposed to move with their cells.

My brain is fried from spending all day coding, so I'm going to move on to something else and let you guys toy with this one. I'm clearly missing something obvious.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,223,728
Messages
6,174,150
Members
452,548
Latest member
Enice Anaelle

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