I have this code that is supposed to look for a . in specific cells and skip some code if it does. Sadly, it always runs the code even if it finds a . in the value.
Here's my code:
Here's my code:
VBA Code:
Sub MarkConfirmed()
Application.EnableEvents = False
Application.ScreenUpdating = False
Application.DisplayAlerts = False
ActiveSheet.Unprotect
Worksheets("Calendar").Range("C" & ActiveCell.Row).Select
If Worksheets("Calendar").Range("C" & ActiveCell.Row) = "*.*" Then GoTo SkipConfirm
Dim c As Range
For Each c In Selection
If c.Value <> "" Then c.Value = c.Value & "."
Next
Worksheets("Calendar").Range("AS" & ActiveCell.Row).Select
If Worksheets("Calendar").Range("AS" & ActiveCell.Row) = "*.*" Then GoTo SkipConfirm
For Each c In Selection
If c.Value <> "" Then c.Value = c.Value & "."
Next
SkipConfirm:
'Protect Calendar
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:=False, AllowFormattingCells:=True, AllowFormattingColumns:=True, AllowFormattingRows:=True, AllowInsertingColumns:=True, AllowInsertingRows:=True, AllowInsertingHyperlinks:=True, AllowDeletingColumns:=True, AllowDeletingRows:=True, AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=True
Application.EnableEvents = True
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub