textbox help

boltjoa

Board Regular
Joined
Apr 29, 2009
Messages
89
ok here is my problem. I have a userform where if i input a recruitid, it will pull up the name of the recruit in the textbox firstname, and the last name of the recruit in the textbox lastname. the first one it populates is fine. after i hit the save and continue button, my entry is cleared out so i can input the next recruitid. When i do, the next name shows up vertically, not horizontally.

any ideas?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

boltjoa

Board Regular
Joined
Apr 29, 2009
Messages
89
Private Sub round_enter()
'match RecruitID to Recruit, and pull details
Dim PullDetail As Range, irow As Long
Dim ws As Worksheet
Set ws = Worksheets("PNMs")
Set PullDetail = ws.Columns("C").Find(What:=Me.TxtRecruitID.Text, LookIn:=xlValues, lookat:=xlWhole)
If Not PullDetail Is Nothing Then
irow = PullDetail.Row
Me.LastName = Range("D" & irow).Value
Me.FirstName = Range("E" & irow).Value
Me.GPA = Range("H" & irow).Value
Me.Hometown = Range("F" & irow).Value
Me.Highschool = Range("G" & irow).Value
Me.Classification = Range("I" & irow).Value
Me.Legacy = Range("J" & irow).Value
Me.Average = Range("B" & irow).Value

Else
MsgBox "RecruitID Not found"
Me.TxtRecruitID = ""


End If

End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,133,276
Messages
5,657,794
Members
418,414
Latest member
ECMdusty

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
Top