I think you'll have to check the log sheet lots of times.
Sarting in A1(?), you'll have to check 378 cells (14 columns by 27 rows) to see
if all the values match up.
If you find a difference, drop down a row and start checking again.
If that 27 rows is an exact match, then set a flag, drop out of the loop and
issue a warning message.
Anthony wrote:
Hi all,
I have this code which runs a macro to add a complete list of all data for
'today' to be entered into a sepeate worksheet which is called the database.
Is there a way, if so how, that the code can be changed so that if the
'same' data is entered twice a pop up message box is shown to alert the user
of this and stop this happening.
The code I have is
Sub add_Anydays_jobs()
With ActiveSheet.Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value
End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub
thanks all
--
Dave Peterson
|