I have code that scans for locked cells.. only problem is it says they are ALL locked.

I have range(A1:C13) as not locked.. and the worksheet is protected.
Now I can change values in that range but no where else...
but code returns ALL cells as locked??

whats wrong with this:
VB Code:
  1. Sub ScanCell()
  2. Dim WB As Workbook
  3. Dim WS As Worksheet
  4. Dim tWS As Worksheet
  5. Set WB = ActiveWorkbook
  6. Dim sRange_Col As String
  7. Dim sRange_Row As Long
  8. Dim tmp As String
  9. Dim tmpR() As String
  10. Dim lRow As Integer
  11. Dim lCol As Integer
  12. lRow = 2
  13. lCol = 64
  14. WB.Worksheets.Add Sheets(1)
  15. Set tWS = ActiveSheet
  16. tWS.Name = "LOCKED CELLS"
  17. For Each WS In WB.Worksheets
  18.     If WS.Name <> tWS.Name Then
  19.         tWS.Range("A1") = "LOCKED CELLS"
  20.         lRow = 2
  21.         lCol = lCol + 1
  22.         tmp = Replace(WS.UsedRange.Address, "$A$1:", "")
  23.         tmpR = Split(tmp, "$")
  24.         sRange_Col = tmpR(1)
  25.         sRange_Row = tmpR(2)
  26.         For col = 65 To Asc(sRange_Col)
  27.             For Row = 1 To sRange_Row
  28.                 If Range(Chr(col) & Row).Locked Then
  29.                      tWS.Range(Chr(lCol) & lRow) = WS.Name & "!" & Chr(col) & Row
  30.                      lRow = lRow + 1
  31.                 End If
  32.             Next
  33.         Next
  34.     End If
  35. Next
  36. End Sub

Thanks!!