Hi,
I have a table with the cells in the second column devoted to containing command buttons. The buttons are created using a subroutine in another part of my code:
The problem I am having is that when I select the cells in the table and try to sort them by column 'B', the sort works fine, but some of the buttons disappear.
Does anyone know why they disappear and what to do about it? I am at a loss...
Thanks,
H
I have a table with the cells in the second column devoted to containing command buttons. The buttons are created using a subroutine in another part of my code:
Code:
Sub Add_Button(InsertRow)
Dim Btn As Object
With Range("C" & InsertRow)
Set Btn = ActiveSheet.Buttons.Add(.Left, .Top, .Width, .Height)
End With
With Btn
.OnAction = "Activate_Job"
.Characters.Text = "Activate"
With .Font
.Name = "Calibri"
.FontStyle = "Regular"
.Size = 10
End With
End With
End Sub
The problem I am having is that when I select the cells in the table and try to sort them by column 'B', the sort works fine, but some of the buttons disappear.
Does anyone know why they disappear and what to do about it? I am at a loss...
Thanks,
H