G
ganesh.valakati
i have created an excel userform to hold and extract data. Im now in
the modst of converting this modeule into an addin. However Im running
into problems while referencing the userforms.
I keep on getting the run time error 9. The error message is
"Subscript out of range"
I have a userform named "Defaults". the below sample code has 3 Text
boxes and they pick yup values from a worksheet inside the addin.
While I believe I can reference the worksheets using "This workbook".
how do I reference the userform.. I have referenced the VBA
Extensibility 5.3 in Available references
Sample code
Defaults.TBFCC.Value = Sheets("Default Values").Range("B54").Value
Defaults.TBMakerID.Value = Sheets("Default Values").Range("B81").Value
Defaults.TBEffectiveDt.Value = Sheets("Default
Values").Range("B82").Value
the modst of converting this modeule into an addin. However Im running
into problems while referencing the userforms.
I keep on getting the run time error 9. The error message is
"Subscript out of range"
I have a userform named "Defaults". the below sample code has 3 Text
boxes and they pick yup values from a worksheet inside the addin.
While I believe I can reference the worksheets using "This workbook".
how do I reference the userform.. I have referenced the VBA
Extensibility 5.3 in Available references
Sample code
Defaults.TBFCC.Value = Sheets("Default Values").Range("B54").Value
Defaults.TBMakerID.Value = Sheets("Default Values").Range("B81").Value
Defaults.TBEffectiveDt.Value = Sheets("Default
Values").Range("B82").Value