oshkoshbagoshh icon

lockcellswithformulas

oshkoshbagoshh | PRO | 08/18/17 05:04:09 AM UTC | 0 ⭐ | 480 👁️ | Never ⏰ | []
VisualBasic |

470 B

|

None

|

0 👍

/

0 👎

'*******************************************************************************
' Locks all cells with formulas
'
'                           ~ AJ Javadi ~
'*******************************************************************************
 
 
Sub LockCellsWithFormulas()
 
With ActiveSheet
 
    .Unprotect
    
    .Cells.Locked = False
    
    .Cells.SpecialCells(xlCellTypeFormulas).Locked = True
    
    .Protect AllowDeletingRows:=True
 
End With
 
End Sub

Comments