Consulting

Results 1 to 3 of 3

Thread: Control on Combobox

  1. #1

    Control on Combobox

    Hi,
    I have 2 comboboxes, 1 - name and 2 is the value
    Selecting a name in first combobox should reflect the corresponding value in the 2nd combobox.

    Apart from the above query,
    I am using exponential function in VBA.
    I need to calculate Reliability using a value in txtbox and store the value in another txt box.
    How do i set a value in txtbox to be "DOUBLE"

    Can anyone help me in resolving this.

    Thank you very much.

    Regards

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    If ComboBox1.Value = "ABC"Then ComboBox2.Value = "XYZ"
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hi XLD,
    The above line of code is not working.
    The below are the lines of code i used. Please correct me incase i am going wrong somewhere :
    For i = 4 To lastrow - 1
    If (cbomodulename.Text = "PM") Then
    cbofailurerate.Value = multiply(Range("B" & i).Value, Range("C" & i).Value)
    MsgBox cbofailurerate.Value

    ElseIf (cbomodulename.Text = "PIM50") Then
    cbofailurerate = multiply(Range("B" & i).Value, Range("C" & i).Value)

    End If
    Next i

    Thanks,
    Vineela

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •