Ik heb onderstaande code:
Mijn excelsheet:
:no_upscale():strip_icc():fill(white):strip_exif()/f/image/690DdKAdRR633YCrt3LTvvqK.jpg?f=user_large)
Mijn userform heeft een textbox1; textbox2 en een commandbutton1
Probleem: Als ik op de button klik komt er niks in de textbox1 te staan.
code:
1
2
3
4
5
6
7
8
9
10
11
12
| Option Explicit Public val As Variant Private Sub CommandButton1_Click() val = Application.WorksheetFunction.VLookup(UserForm1.TextBox2.Text, ThisWorkbook.Sheets("Lijsten").Range("A1:E40"), 4, False) UserForm1.TextBox1.Text = val End Sub |
Mijn excelsheet:
:no_upscale():strip_icc():fill(white):strip_exif()/f/image/690DdKAdRR633YCrt3LTvvqK.jpg?f=user_large)
Mijn userform heeft een textbox1; textbox2 en een commandbutton1
Probleem: Als ik op de button klik komt er niks in de textbox1 te staan.