Hello,
I have a sheet "Clients" that contains all clients details as the table below and I have all these data as dynamic named range "Client_Details" "A2:D4"
I have a userform with many text boxes and combo boxes, but what I need right now is:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Phone[/TD]
[TD]Email[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]101[/TD]
[TD]Nadim[/TD]
[TD]123456[/TD]
[TD]sadas[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]102[/TD]
[TD]Nael[/TD]
[TD]654654[/TD]
[TD]asdasd[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]103[/TD]
[TD]Rami[/TD]
[TD]545645[/TD]
[TD]asfdaf[/TD]
[/TR]
</tbody>[/TABLE]
Many thanks in advanced
I have a sheet "Clients" that contains all clients details as the table below and I have all these data as dynamic named range "Client_Details" "A2:D4"
I have a userform with many text boxes and combo boxes, but what I need right now is:
- Once I choose a Client name in the combobox1, get the ID for this client on textbox1 and the phone number on textbox2
- ex: if I typed "Nael" from the combobox1, get the ID "102" on textbox1 and the phone number "654654" on textbox2
- If I typed a name that not exist, get msgbox ("This Client Name is not Exist" & vbCrLf & vbCrLf & "Do you wanna add a new client?" , vbYesNo)
- If vbYes then, open the userform "NewClient" (And add a new client and then update the list on combobox1 to get the new client)
- If vbNo, combobox1 = ""
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Phone[/TD]
[TD]Email[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]101[/TD]
[TD]Nadim[/TD]
[TD]123456[/TD]
[TD]sadas[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]102[/TD]
[TD]Nael[/TD]
[TD]654654[/TD]
[TD]asdasd[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]103[/TD]
[TD]Rami[/TD]
[TD]545645[/TD]
[TD]asfdaf[/TD]
[/TR]
</tbody>[/TABLE]
Many thanks in advanced