Recibí un error de tiempo de ejecución 91 en una búsqueda simple de ID... ¿Por qué? (SOLUCIONADO: La búsqueda falló porque la celda estaba formateada como número con coma; extraño pero cierto, se cambió el formato a "general" y funciona perfectamente. ¡Gracias a todos!)
Public Sub SearchID()
Dim foundCell As Range
Dim searchEmpID As String
Dim searchRange As Range
Dim rowFound As Integer
searchEmpID = "EmpID_0112"
Set searchRange = Sheets("HoursData").Range("DY2:DY999")
Sheets("HoursData").Select
Set foundCell = searchRange.Find(What:=searchEmpID, LookIn:=xlValues, LookAt:=xlWhole, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
MsgBox Sheets("HoursData").Range("DY115").Value '<<<<< Los datos/ID están ahí, consulte la captura de pantalla.
rowFound = foundCell.Row '<<<<<<<<<<<< Why this produces Runtime Error 91/Object Variable Not Set...???
End Sub