Thread: Message box
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Message box

Right click the sheet tab and select view code. Add the following. You will
need to change the cell reference...

Private Sub Worksheet_Change(ByVal Target As Range)
If Round(Range("A1"), 3) < 0 Then MsgBox "Out of Balance"
End Sub

--
HTH...

Jim Thomlinson


"Gordy99" wrote:

I have a cell that checks the vertical totals with the horizontal totals and
shows the difference if they are difference.
I would like to add a pop up message box if they are different using sheet
code.
Thanks,
Gordy