Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Simple VBA question
I am teaching myself VBA. I have read and read tutorials and am trying to do
somthing very simple. Public Sub firsttry() Dim x As Integer x = Range("A1").Value If x = 1 Then MsgBox "invalid number in cell A1" End If End Sub I have to run the macro for the msgbox to appear. How can it pop up as soon as the number 1 is entered in cell A1? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
simple IF question | Excel Discussion (Misc queries) | |||
IF formula-simple question; simple operator | Excel Discussion (Misc queries) | |||
Simple Simple Excel usage question | Excel Discussion (Misc queries) | |||
simple question, hopefully a simple answer! | Excel Programming | |||
a simple question | Excel Programming |