Hello Hello,
I am using 5 option buttons to hide columns D, E, F, G, H respectively. What i am trying to achieve is that if option button 1 is selected, only column D appears - containing multiple Checkboxes. When option button 2 is selected, only column E appears, containing multiple checkboxes (different from those in the previous column) and so on and so on...
I managed to hide/unhide the columns, the problem i am facing now is that the chceckboxes "float" and never dissapear. At the moment i am using this (for option button 1 & column D):
Sub uno()
'
' uno Macro
' uno
'
' Keyboard Shortcut: Ctrl+u
'
Columns("E:H").Select
Range("H1").Activate
Selection.EntireColumn.Hidden = True
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Columns("D:D").Select
Selection.EntireColumn.Hidden = False
Range("D12").Select
End Sub
I am very very new at this, is there anything i can add to this to make the checkboxes hide/unhide together with the columns? Or do i need to change the whole thing? I wouldn't be surprised if there was a better option...
many many thanks in advance,
regards,
dana
Bookmarks