Calculation Combobox and textbox to locked textbox

evinx

New Member
Joined
Jun 16, 2018
Messages
15
hi all im new here and little noob with excel vba

im trying to make a form system that i can use at my work to make my work much easier
where i can collect information of my clients and what kind of installations they have on there building

i have a userform with:

Combobox1 (with text of sheet1 column A)(column B has the value of the text in column A)
textbox1 (where i can type the amount in KG)
textbox2 (here i need a result of calculation)

For example:
Combobox1=R410A (value is 2.088)
textbox1=2.4
textbox2=5.011

Combobox1 * textbox1 = textbox2

i cant figure it out how to
i use this code for my combobox1
HTML:
Dim cell As Range
With Worksheets("Sheet1")
For Each cell In .Range("A2:A1000" & .Cells(Rows.Count, 3).End(xlUp).Row)
If Not IsEmpty(cell) Then Combobox1.AddItem cell.value
Next cell
End With


i hope someone can help me
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
oke i figured it out :) thanks for all reply

Code:
Private Sub Freontypes_Change()

    gwp.Text = Application.VLookup(Freontypes.value, Worksheets("Database Freon").Range("B2:C1000"), 2, False)

End Sub
Code:
Private Sub Freoninhoud_Change()
    If Freoninhoud.Text = "" Then
        MsgBox "Vul iets in"
        Exit Sub
    Else
     Co2.Text = CDbl(Replace(Me.Freoninhoud.Text, ".", ",")) * gwp.Text
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top