Sub Button1_Click() If activecell.Row > 7 Then Call OtherMacro ElseIf activecell.Row < 8 Then MsgBox "Marcro cannot be run on a row between 1 and 7" Exit Sub End If End Sub