- Joined
- Mar 12, 2009
- Messages
- 2
- Reaction score
- 0
Hello,
I am frustratingly getting a "Type Mismatch" error on this bit of code:
Public Sub ReLockAll(user As String)
If shtFCED.Visible = True Then
shtFCED.Unprotect
shtFCED.Select
Range("A4:AT110").Select
Selection.Font.ColorIndex = 0 '<<<---ERROR HERE "Type Mismatch Error"
Selection.Font.Bold = False
Selection.Locked = True
shtFCED.Protect
shtFCED.Visible = False
End If
End Sub
Any ideas?
I am frustratingly getting a "Type Mismatch" error on this bit of code:
Public Sub ReLockAll(user As String)
If shtFCED.Visible = True Then
shtFCED.Unprotect
shtFCED.Select
Range("A4:AT110").Select
Selection.Font.ColorIndex = 0 '<<<---ERROR HERE "Type Mismatch Error"
Selection.Font.Bold = False
Selection.Locked = True
shtFCED.Protect
shtFCED.Visible = False
End If
End Sub
Any ideas?