ASKER
Sub Protect_Workbook(Para_Message As String)
Application.ScreenUpdating = True
Worksheets("Main Sheet").Protect Password:="12345"
End Sub
Here is the way to unprotect the sheet.
Sub Unprotect_Workbook(Para_Message As String)
Application.ScreenUpdating = False
Worksheets("Main Sheet").Unprotect Password:="12345"
End Sub
If cel.Interior.Color <> vbYellow Then
If cel.Interior.Color = vbYellow Then
ASKER
ASKER
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
TRUSTED BY
Open in new window
Open in new window