Hello!
I'm trying to improve a workbook that uses VBA macros and I have no experience with VBA. I've studdied the current excel workbook and vba code to help me. I've been learning about vba and I've been able to sort out some problems but now I have no idea what's causing my error. Btw, the current workbook macros work fine. I've pretty much copied most of the current macros' vba code. The current workbook uses Form Controls instead of Active X Controls, so that's why I'm also using them (to make things easier on me) even though i'd rather use Active X. Anyway...
Here's the line of vba code I need to debug (Run-time error 438: Object doesn't support this property or method):
Here is the vba code from the start of the module up to shortly after the above line of code:
There is a Form Control textbox called "CoaxConfigListBox" on a worksheet called "Instructions". There is also a worksheet called "ProbeSpecs" in which there is a range called "CoaxConfig" which is the Input Range for the textbox. My code is the same as the current vba code except for the names and this is what confuses me. Any help will be greatly appreciated. Btw, there is a lot more code AND another module called Parameters().
Thank you
-Nick
I'm trying to improve a workbook that uses VBA macros and I have no experience with VBA. I've studdied the current excel workbook and vba code to help me. I've been learning about vba and I've been able to sort out some problems but now I have no idea what's causing my error. Btw, the current workbook macros work fine. I've pretty much copied most of the current macros' vba code. The current workbook uses Form Controls instead of Active X Controls, so that's why I'm also using them (to make things easier on me) even though i'd rather use Active X. Anyway...
Here's the line of vba code I need to debug (Run-time error 438: Object doesn't support this property or method):
HTML:
Set CoaxConfigListBox = Worksheets("Instructions").ProbeSelect("CoaxConfigListBox")
Here is the vba code from the start of the module up to shortly after the above line of code:
HTML:
Sub ProbeSelect()
Worksheets("Instructions").Activate
Worksheets("ProbeSpecs").Activate
Worksheets("Instructions").Shapes.Range(Array("Single_Fig1", "Single_Fig2", "Single_Fig3", "Single_Fig4", "Single_Fig5", "Single_Fig6", "Single_Fig7", "Single_Fig8", _
"SingleMini_Fig5", "SingleMini_Fig6", "SingleMini_Fig7", "SingleMini_Fig8", _
"Dual_Fig1", "Dual_Fig2", "Dual_Fig3", "Dual_Fig4", "Dual_Fig5", "Dual_Fig6", "Dual_Fig7", "Dual_Fig8", _
"DualMini_Fig5", "DualMini_Fig6", "DualMini_Fig7", "DualMini_Fig8", _
"DualGSSG_Fig7", "DualGSSG_Fig8", "DualGSSG_Fig9", _
"DualMiniGSSG_Fig7", "DualMiniGSSG_Fig8", "DualMiniGSSG_Fig9")).Visible = False
'Worksheets("Instructions").Rows("9:9").Hidden = False 'shows warning sign (hidden in 'parameters')
''''''''''''''''''''''''''''''''''
'''''''''''Coax Number''''''''''''
''''''''''''''''''''''''''''''''''
Dim CoaxConfigListBox As ListBox
Set CoaxConfigListBox = Worksheets("Instructions").ProbeSelect("CoaxConfigListBox")
Set r = Worksheets("ProbeSpecs").Range(CoaxConfigListBox.ListFillRange)
There is a Form Control textbox called "CoaxConfigListBox" on a worksheet called "Instructions". There is also a worksheet called "ProbeSpecs" in which there is a range called "CoaxConfig" which is the Input Range for the textbox. My code is the same as the current vba code except for the names and this is what confuses me. Any help will be greatly appreciated. Btw, there is a lot more code AND another module called Parameters().
Thank you
-Nick