Hey,
Since you gave me tons of help before, I am afraid you are getting stuck with another Combobox question.
I have a combobox called ExistIIP1 and when a user inputs their own custom ExistIIP1.Text value, I want the ExistIIP1.Value to equal some text I specify. In this example I am using the word "Krunk".
Private Sub ExistIIP1_Change()
ExistIIP1.Value = "Krunk"
End Sub
This is independent of the two column combobox that ExistIIP1 is defined as. All this explanation I think is really not necessary perhaps as the real problem is that when the below code is executed I get a:
"Could not set the Value property. Invalid property value."
error. But since I don't know squat about all this Visual Basic in Excel junk I am working in it has me puzzled.
I tried using a variation of your helpful code before of:
Dim i As Integer
Dim o As ComboBox
With Sheets("Funding Sheet"
For i = 1 To .OLEObjects.Count
If TypeName(Sheets("Funding Sheet"
.OLEObjects(i).Object) = "ComboBox" Then
Set o = Sheets("Funding Sheet"
.OLEObjects(i).Object
If o.Name = ItemName Then
o.Value = "Krunk"
If o.LinkedCell <> "" Then .Range(o.LinkedCell) = ""
End If
End If
Next i
End With
Set o = Nothing
End Sub
And when it goes to write the o.value I get the same error.
Anyways, I hope I am explaining this worth a darn.
Thanks for any help you can give!!
Since you gave me tons of help before, I am afraid you are getting stuck with another Combobox question.
I have a combobox called ExistIIP1 and when a user inputs their own custom ExistIIP1.Text value, I want the ExistIIP1.Value to equal some text I specify. In this example I am using the word "Krunk".
Private Sub ExistIIP1_Change()
ExistIIP1.Value = "Krunk"
End Sub
This is independent of the two column combobox that ExistIIP1 is defined as. All this explanation I think is really not necessary perhaps as the real problem is that when the below code is executed I get a:
"Could not set the Value property. Invalid property value."
error. But since I don't know squat about all this Visual Basic in Excel junk I am working in it has me puzzled.
I tried using a variation of your helpful code before of:
Dim i As Integer
Dim o As ComboBox
With Sheets("Funding Sheet"
For i = 1 To .OLEObjects.Count
If TypeName(Sheets("Funding Sheet"
Set o = Sheets("Funding Sheet"
If o.Name = ItemName Then
o.Value = "Krunk"
If o.LinkedCell <> "" Then .Range(o.LinkedCell) = ""
End If
End If
Next i
End With
Set o = Nothing
End Sub
And when it goes to write the o.value I get the same error.
Anyways, I hope I am explaining this worth a darn.
Thanks for any help you can give!!