Hello,
I am working with a piece of code found here: http://www.mrexcel.com/forum/excel-questions/249841-hide-unhide-rows-selecting-letter-combobox.html.
My version of the code is aimed at hiding certain columns based on a the selection in the combobox. The combobox object was initially added via the gui and modified as follows
This code object sits in ThisWorkbook->Modules->"module1"
Whenever I select a value from the combobox however, I get ""Error 424, Object Required". The Debugger highlights the Select Case statement.
I think the code is fine but, being new to VBA, I might have omitted some initial crucial step. Please help.
Thanks
I am working with a piece of code found here: http://www.mrexcel.com/forum/excel-questions/249841-hide-unhide-rows-selecting-letter-combobox.html.
My version of the code is aimed at hiding certain columns based on a the selection in the combobox. The combobox object was initially added via the gui and modified as follows
Code:
Private Sub DropDown42_Change()
Select Case DropDown42.Value
Case "Load"
Range("AB:AN,AP:Ap,aR:AR,AV:AV").EntireColumn.Hidden = True
Case "order"
Range("AB:AN,AP:Ap,aR:AR,AV:AV").EntireColumn.Hidden = False
End Select
End Sub
This code object sits in ThisWorkbook->Modules->"module1"
Whenever I select a value from the combobox however, I get ""Error 424, Object Required". The Debugger highlights the Select Case statement.
I think the code is fine but, being new to VBA, I might have omitted some initial crucial step. Please help.
Thanks
Last edited: