Evening all,
Could someone tell me how to get this macro to warn when J2 is greater than or = 230 but refuse to let the macro continue when it reaches 250 (J3), at the minute is still seems to allow the macro so copy the cells into the new sheet.
Cheers
Turly
'
Sheets("Booking").Select
If Range("J3") > Range("J2") Then
MsgBox "Sold Out, reduce number"
Exit Sub
End If
Range("A20:S20").Select
Selection.Copy
Sheets("SavedBookings").Select
Range("A2").Select
Selection.End(xlDown).Select
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Booking").Select
Range("B10").Select
Application.CutCopyMode = False
End Sub
Bookmarks