Hi,
I'm trying to update/add some data in row 18, but if the selected cell
to update is in a col. where the current week no. (A35) doesn't match
the week no. in the cell 12 rows above then the update should be
disallowed since the update is being done more than once, which I
don't want done.
I can figure out the flow I need, but not how to do the comparison.
Here's my thoughts, but how do I get the comparison to work?
Sub Update()
Range("C18").Select
Selection.End(xlToRight).Select
Selection.Copy
Selection.Offset(0, 1).Select
If Range(A35).Value = Selection.Offset(-12, 0).Value Then
ActiveSheet.Paste
Application.CutCopyMode = False
Else
Msg = "Only the current week may be updated!"
Exit Sub
End If
End Sub
Thanks for your time!
Norm
Bookmarks