Try:
Private Sub cbResolved_Click()
Application.ScreenUpdating = False
Dim pass As String
Dim foundPass As Range
pass = InputBox("Enter Password")
If pass = "" Then Exit Sub
Set foundPass = Sheets("Sheet2").Range("C:C").Find(pass, LookIn:=xlValues, lookat:=xlWhole)
If Not foundPass Is Nothing Then
Sheets(2).Range("CC1") = foundPass.Offset(0, -1)
ufInquiryResolved.Show
Else
MsgBox "Invalid password. Please try again."
End If
Application.ScreenUpdating = True
End Sub
You don't need to use activecell.offset(0,80). We can simply use a direct reference to cell CC1.
Bookmarks