Option Explicit
Private Sub UserForm_Initialize()
With Me
.Top = Application.Top
.Left = Application.Left
.Height = Application.Height
.Width = Application.Width
End With
With Me.cbxSelectPerson
'.List = Application.Transpose(Sheets("Tracker").ListObjects(1).DataBodyRange)
.RowSource = "OFFSET(tracker!$A$2,1,0,COUNTA(tracker!$A:$A)-1,3)"
.ColumnCount = 3
.ColumnWidths = "80pt;150pt;100pt"
.SetFocus
End With
End Sub
Private Sub cbxSelectPerson_Change()
With Me
.tbxFirstNames.Value = StrConv(Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 2, 0), vbProperCase)
.tbxLastName.Value = UCase(Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 3, 0))
.tbxFiletype.Value = StrConv(Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 4, 0), vbProperCase)
.tbxFileStatus.Value = StrConv(Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 5, 0), vbProperCase)
.tbxDateOfSomething.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 6, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxHappened.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 16, 0)
.tbxDate.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 17, 0)
.tbxOption1.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 18, 0)
.tbxOption2.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 19, 0)
.tbxPersonA.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 20, 0)
.tbxPersonAReportReceived.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 21, 0)
.tbxPersonB.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 22, 0)
.tbxPersonBReportReceived.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 23, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria1.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 7, 0)
.tbxCriteria2.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 8, 0)
.tbxCriteria3.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 9, 0)
.tbxCriteria4.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 10, 0)
.tbxCriteria5.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 11, 0)
.tbxCriteria6.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 12, 0)
.tbxCriteria7.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 13, 0)
.tbxCriteria8.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 14, 0)
.tbxCriteria9.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 15, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteriaBRequested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 24, 0)
.tbxCriteriaBReceived.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 25, 0)
.tbxCriteriaBCompleted.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 26, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria1Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 27, 0)
.tbxCriteria1Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 28, 0)
.tbxCriteria1Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 29, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria2Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 30, 0)
.tbxCriteria2Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 31, 0)
.tbxCriteria2Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 32, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria3Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 33, 0)
.tbxCriteria3Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 34, 0)
.tbxCriteria3Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 35, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria5Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 40, 0)
.tbxCriteria5Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 41, 0)
.tbxCriteria5Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 42, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria4Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 36, 0)
.tbxCriteria4Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 37, 0)
.tbxCriteria4Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 38, 0)
.tbxCriteria4Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 39, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria6Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 43, 0)
.tbxCriteria6Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 44, 0)
.tbxCriteria6Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 45, 0)
.tbxCriteria6Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 46, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria7Available.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 47, 0)
.tbxCriteria7Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 48, 0)
.tbxCriteria7Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 49, 0)
.tbxCriteria7Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 50, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria81Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 51, 0)
.tbxCriteria81Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 52, 0)
.tbxCriteria81Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 53, 0)
.tbxCriteria81Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 54, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria82Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 55, 0)
.tbxCriteria82Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 56, 0)
.tbxCriteria82Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 57, 0)
.tbxCriteria82Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 58, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria83Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 59, 0)
.tbxCriteria83Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 60, 0)
.tbxCriteria83Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 61, 0)
.tbxCriteria83Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 62, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria91Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 63, 0)
.tbxCriteria91Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 64, 0)
.tbxCriteria91Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 65, 0)
.tbxCriteria91Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 66, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria92Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 67, 0)
.tbxCriteria92Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 68, 0)
.tbxCriteria92Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 69, 0)
.tbxCriteria92Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 70, 0)
' XXXXXXXXXXXXXXXXXXXXXXXXX
.tbxCriteria93Who.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 71, 0)
.tbxCriteria93Requested.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 72, 0)
.tbxCriteria93Due.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 73, 0)
.tbxCriteria93Received.Value = Application.WorksheetFunction.VLookup(CLng(Me.cbxSelectPerson), _
Worksheets("Tracker").Range("A:BW"), 74, 0)
End With
End Sub