Alteran
Board Regular
- Joined
- Nov 25, 2009
- Messages
- 117
I am trying to use .find to find a row and pull the information from it to a user form, however because there is formulas in the row I am looking in its not finding the value i need can anyone help?
This is the code I have done so far:
This is the code I have done so far:
Code:
Private Sub cbLoad_Request_Click()
Dim TravelFound As Range
With Range("TravelItems")
Set TravelFound = .Find(tbTRID.Value)
If TravelFound Is Nothing Then
MsgBox ("Travel request does not exist!")
tbTRID.Value = ""
Exit Sub
Else
With Range(TravelFound.Address)
ddDir = .Offset(0, 2)
ddTType = .Offset(0, 3)
ddCC = .Offset(0, 4)
ddOPSC = .Offset(0, 5)
tbEName = .Offset(0, 6)
tbStartD = .Offset(0, 7)
tbEndD = .Offset(0, 8)
tbLocation = .Offset(0, 10)
tbName = .Offset(0, 11)
tbClass = .Offset(0, 12)
tbEorC = .Offset(0, 13)
tbECost = .Offset(0, 14)
tbJustification = .Offset(0, 15)
tbSTComments = .Offset(0, 16)
ddST = .Offset(0, 18)
ddIA = .Offset(0, 20)
ddTStatus = .Offset(0, 22)
tbSTDate = .Offset(0, 19)
tbIABDate = .Offset(0, 21)
tbTDate = .Offset(0, 23)
tbAddition = .Offset(0, 17)
End With
End If
End With
End Sub