Hi all!
I’ve set up an Excel workbook with multiple checkboxes, all in the same column, which control chart creation/deletion and row hiding/unhiding. These checkboxes are from the Forms toolbar. (The kind that has a .linkedcell property) What I need to accomplish is to be able to sort the worksheet, and have the checkboxes not only physically move with the rows in which they are placed, but have the cell reference in their .linkedcell property updated as well.
When I sort the worksheet, Excel does a somewhat effective job of moving the controls with the rows, but it’s not precise. But not surprisingly, the .linkedcell property doesn’t change at all. I guess I’m just looking for some way to reference in VBA, what row the data that was in the original liked row went to after the sort, and update the .linkedcell property accordingly. Either that, or a way for VBA to know, at any point, what row the form control is sitting in. Anyone ever run into this? Any help would be greatly appreciated.
Thanks in advance!!
I’ve set up an Excel workbook with multiple checkboxes, all in the same column, which control chart creation/deletion and row hiding/unhiding. These checkboxes are from the Forms toolbar. (The kind that has a .linkedcell property) What I need to accomplish is to be able to sort the worksheet, and have the checkboxes not only physically move with the rows in which they are placed, but have the cell reference in their .linkedcell property updated as well.
When I sort the worksheet, Excel does a somewhat effective job of moving the controls with the rows, but it’s not precise. But not surprisingly, the .linkedcell property doesn’t change at all. I guess I’m just looking for some way to reference in VBA, what row the data that was in the original liked row went to after the sort, and update the .linkedcell property accordingly. Either that, or a way for VBA to know, at any point, what row the form control is sitting in. Anyone ever run into this? Any help would be greatly appreciated.
Thanks in advance!!