Pop up Message box

klynne75

New Member
Joined
Dec 11, 2009
Messages
19
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a popup messgage box based on a cell value in a worksheet.

I have multiple worksheets in my workbook.

In my 1st worksheet "Bridger" I'd like a pop up box to appear when/if AE3<=AE4. The message will say "Time to order tickets".

The remaining worksheets will have similar messages but the cell ranges will be different.

I've never written code before, so I'm clueless.

Are there any links that would teach me more?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
i think this will do what you need


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("ae3") <= Range("ae4") Then
MsgBox ("time to order tickets"), vbOKOnly
End If
End Sub

right click on the sheet tab select view code and paste there
cheers kev
 
Upvote 0
Solution

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top