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?
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

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
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,561
Messages
5,512,071
Members
408,878
Latest member
stams

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top