hitman0801

New Member
Joined
Mar 29, 2018
Messages
3
Hi Team,

I have this vlookup code that I've been using. It is giving me the result that I need. However, I want the vlookup result to be editable. To be more specific with the problem, Whenever I choose a value from combobox1 then a corresponding value will appear in textbox1 however, I want value of textbox1 to be editable. Below is the code that I've made:

Code:
Private Sub Status_Change()
      If Status.Value = "" Then
    Documentation = ""
    Exit Sub
Else
x = 2
Do Until Sheet4.Cells(x, "A") = Status.Value
If Sheet4.Cells(x, "A").Value = "" Then
    Documentation = ""
    Exit Sub
End If
x = x + 1
Loop
Documentation = Sheet4.Cells(x, "C")
End If
ThisWorkbook.Save
                    
End Sub
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Watch MrExcel Video

Forum statistics

Threads
1,109,334
Messages
5,528,093
Members
409,802
Latest member
joeino

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top