erixon019
08-09-2018, 08:50 PM
I am a newbie on Excel VBA programming, please bear with me.
I tried to look at the forum but I cannot find the right answer to my problem.
My problem is i cannot recall the combobox value stored on Sheet1, when i click the edit button to recall all the data inputed on every textbox.
Data inputed on the textboxes were saved on a specific sheet (Sheet1). There are only 2 choice/values on the combobox.
If Sheet1.Range("D8").Value is 1.17 there is no problem.
If Sheet1.Range("D8").Value is 0.8 then it returns an error, Run-time error 380 "Could not set the Value property. Invalid property value.
MoldCapThickness.Clear
With MoldCapThickness
.AddItem "1.17"
.AddItem "0.80"
End With
Private Sub Edit1_Click()
SolderBallPitch.Value = Sheet1.Range("D4").Value
MaxWireLength.Value = Sheet1.Range("D7").Value
'MoldCapThickness is a combobox
MoldCapThickness = Sheet1.Range("D8").Value
End Sub
Thanks for the help
I tried to look at the forum but I cannot find the right answer to my problem.
My problem is i cannot recall the combobox value stored on Sheet1, when i click the edit button to recall all the data inputed on every textbox.
Data inputed on the textboxes were saved on a specific sheet (Sheet1). There are only 2 choice/values on the combobox.
If Sheet1.Range("D8").Value is 1.17 there is no problem.
If Sheet1.Range("D8").Value is 0.8 then it returns an error, Run-time error 380 "Could not set the Value property. Invalid property value.
MoldCapThickness.Clear
With MoldCapThickness
.AddItem "1.17"
.AddItem "0.80"
End With
Private Sub Edit1_Click()
SolderBallPitch.Value = Sheet1.Range("D4").Value
MaxWireLength.Value = Sheet1.Range("D7").Value
'MoldCapThickness is a combobox
MoldCapThickness = Sheet1.Range("D8").Value
End Sub
Thanks for the help