'for lastrow giving me message Methold range of object worksheet failed
With Rep
.Unprotect ("000")
LastRow = .Range("F6:F" & LastRow).End(xlUp).Row + 1
.Range("$C$6:$Z$6").AutoFilter
.Protect Password:=("0000")
Me.CbInvStore.Value = .Cells(LastRow - fw2, "C") 'inv_store
Me.Lbl_typ.Caption = .Cells(LastRow - fw2, "E").Value
Me.TbInvNo.Value = Format(.Cells(LastRow - fw2, "F").Value, "00000")