VBA - ovládací prvky
xlButtonControl xlButtonControl xlButtonControl | 0 | Button. |
xlCheckBox xlCheckBox xlCheckBox | 1 | Check box. |
xlDropDown xlDropDown xlDropDown | 2 | Combo box. |
xlEditBox xlEditBox xlEditBox | 3 | Text box. |
xlGroupBox xlGroupBox xlGroupBox | 4 | Group box. |
xlLabel xlLabel xlLabel | 5 | Label. |
xlListBox xlListBox xlListBox | 6 | List box. |
xlOptionButton xlOptionButton xlOptionButton | 7 | Option button. |
xlScrollBar xlScrollBar xlScrollBar | 8 | Scroll bar. |
xlSpinner xlSpinner xlSpinner | 9 | Spinner. |
Skrytí skupinových rámečků
Sub HideGroupBoxes()
Dim gb As GroupBox
For Each gb In ActiveSheet.GroupBoxes
gb.Visible = False
Next gb
End Sub
Zobrazení skupinových rámečků
Sub ShowGroupBoxes()
Dim gb As GroupBox
For Each gb In ActiveSheet.GroupBoxes
gb.Visible = True
Next gb
End Sub