Messge box

B

Bill

Hello everybody,

Does anyone know how can i work with message boxes?
there is anywy that i can make a message box to pop up
when someone hit on a cell?

Thanks a Lot
Bill
 
H

Harald Staff

Hi Bill

Rightclick the sheet tab, go "View Code", paste this in:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$1" Then
MsgBox "You are entering the great B1"
End If
End Sub

And to quote mrs Krabappel from The Simpsons: "Now that you know how to do
it, don't !" MsgBox'es are modal, you have to OK to get rid of them, few
people digest the message and they are in general very annoying.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top