UserForm TextBox1 value equals WS cell value

Big Lar

Well-known Member
Joined
May 19, 2002
Messages
557
What am I missing? TextBox1 remains blank
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p>
Rich (BB code):
</o:p>
Private Sub UserForm_Initialize()<o:p></o:p>
Dim x&<o:p></o:p>
With Sheets("Sheet1")<o:p></o:p>
  For x = 2 To .Cells(Rows.Count, "A").End(xlUp).Row<o:p></o:p>
      ComboBox1.AddItem (.Range("A" & x).Value)<o:p></o:p>
  Next x<o:p></o:p>
End With<o:p></o:p>
End Sub
_______________________________________________________
 
<o:p></o:p>
Private Sub ComboBox1_Change()<o:p></o:p>
<o:p></o:p>
Dim x&<o:p></o:p>
With Sheets("Sheet1")<o:p></o:p>
  For x = 1 To .Cells(Rows.Count, "A").End(xlUp).Row<o:p></o:p>
      If .Cells(x, "A").Value = Me.ComboBox1.Value Then _<o:p></o:p>
          Me.TextBox3.Value = .Cells(x, "T").Value<o:p></o:p>
  Next x<o:p></o:p>
End With<o:p></o:p>
End Sub
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This is very odd.

This works on all my other forms...and on a new "Test" UserForm in a fresh sheet.

But doesn't work on my current project. I've even created UserForm3 with one ComboBox and one TextBox...still nothing.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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