HI Friends,
We do restrict the textbox to accept only text or date...etc. my case is different, i wanted to come cell value in the textbox as it is. I have below code to bring the lookup value in the textbox, some time value will be date and time, some time it is text.
alofr is the name of text box. arrno is the value in the compobox,.
Appreciate your help
We do restrict the textbox to accept only text or date...etc. my case is different, i wanted to come cell value in the textbox as it is. I have below code to bring the lookup value in the textbox, some time value will be date and time, some time it is text.
alofr is the name of text box. arrno is the value in the compobox,.
Appreciate your help
Code:
Private Sub arrno_Change
alofr.Value = Application.VLookup(Val(arrno.Value), Sheets("Data").Range("f3:ab25000"), 4, False)
End sub