ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pop up message (https://www.excelbanter.com/excel-programming/391258-pop-up-message.html)

[email protected]

Pop up message
 
Hello All,

I am looking to create a popup warning notification macro when a cell
is changed. I would like it to say something like this: Please be
advised that this amount does not include blah blah blah amount. Does
anyone know how to create this Macro?

Thanks so much


Gord Dibben

Pop up message
 
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value < "" Then
MsgBox " Please be advised that this amount does not include blah blah amount."
End If
stoppit:
Application.EnableEvents = True
End Sub

Right-click on the sheet tab and "View Code"

Copy/paste the above event code into that sheet module.

Adjust the cell range to suit.

On Wed, 13 Jun 2007 13:53:21 -0700, wrote:

Hello All,

I am looking to create a popup warning notification macro when a cell
is changed. I would like it to say something like this: Please be
advised that this amount does not include blah blah blah amount. Does
anyone know how to create this Macro?

Thanks so much



[email protected]

Pop up message
 
On Jun 13, 5:18 pm, Gord Dibben <gorddibbATshawDOTca wrote:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value < "" Then
MsgBox " Please be advised that this amount does not include blah blah amount."
End If
stoppit:
Application.EnableEvents = True
End Sub

Right-click on the sheet tab and "View Code"

Copy/paste the above event code into that sheet module.

Adjust the cell range to suit.



On Wed, 13 Jun 2007 13:53:21 -0700, wrote:
Hello All,


I am looking to create a popup warning notification macro when a cell
is changed. I would like it to say something like this: Please be
advised that this amount does not include blah blah blah amount. Does
anyone know how to create this Macro?


Thanks so much- Hide quoted text -


- Show quoted text -


I am very very new to this. Can you go into more detail as to what to
do? thanks so much


Gord Dibben

Pop up message
 
Other than right-click on the sheet tab and select "View Code".

Copy/paste the event code into that sheet module.

As written, when you make a change in A2 the message will pop up.

What assistance do you require?

Do you need a different or larger range or an entire column or row or??

You need to provide a few questions about what more you require before I can
provide more detail.


Gord

On Wed, 13 Jun 2007 14:52:16 -0700, wrote:

On Jun 13, 5:18 pm, Gord Dibben <gorddibbATshawDOTca wrote:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value < "" Then
MsgBox " Please be advised that this amount does not include blah blah amount."
End If
stoppit:
Application.EnableEvents = True
End Sub

Right-click on the sheet tab and "View Code"

Copy/paste the above event code into that sheet module.

Adjust the cell range to suit.



On Wed, 13 Jun 2007 13:53:21 -0700, wrote:
Hello All,


I am looking to create a popup warning notification macro when a cell
is changed. I would like it to say something like this: Please be
advised that this amount does not include blah blah blah amount. Does
anyone know how to create this Macro?


Thanks so much- Hide quoted text -


- Show quoted text -


I am very very new to this. Can you go into more detail as to what to
do? thanks so much



[email protected]

Pop up message
 
On Jun 13, 6:31 pm, Gord Dibben <gorddibbATshawDOTca wrote:
Other than right-click on the sheet tab and select "View Code".

Copy/paste the event code into that sheet module.

As written, when you make a change in A2 the message will pop up.

What assistance do you require?

Do you need a different or larger range or an entire column or row or??

You need to provide a few questions about what more you require before I can
provide more detail.

Gord



On Wed, 13 Jun 2007 14:52:16 -0700, wrote:
On Jun 13, 5:18 pm, Gord Dibben <gorddibbATshawDOTca wrote:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$2" And Target.Value < "" Then
MsgBox " Please be advised that this amount does not include blah blah amount."
End If
stoppit:
Application.EnableEvents = True
End Sub


Right-click on the sheet tab and "View Code"


Copy/paste the above event code into that sheet module.


Adjust the cell range to suit.


On Wed, 13 Jun 2007 13:53:21 -0700, wrote:
Hello All,


I am looking to create a popup warning notification macro when a cell
is changed. I would like it to say something like this: Please be
advised that this amount does not include blah blah blah amount. Does
anyone know how to create this Macro?


Thanks so much- Hide quoted text -


- Show quoted text -


I am very very new to this. Can you go into more detail as to what to
do? thanks so much- Hide quoted text -


- Show quoted text -


I guess I am just confused as to where to start. I would just like
this macro to happen for when one changes. For example if cell A1
changes, I would like a notification to appear saying this cell is
changing. Do I just start off by pasting that entire code into the
View Code sheet? Do I do anything with VBE? Thanks so much.

Justin


Gord Dibben

Pop up message
 
See in-line

On Thu, 14 Jun 2007 06:10:13 -0700, wrote:

I guess I am just confused as to where to start. I would just like
this macro to happen for when one changes.


The code will pop up the message when you make a change in the target cell.

For example if cell A1
changes,


Change A2 to A1 in the code.

I would like a notification to appear saying this cell is
changing. Do I just start off by pasting that entire code into the
View Code sheet?


Just paste the code into the module that opens when you select "View Code" after
right-click on the sheet tab.

Do I do anything with VBE? Thanks so much.


The "View Code" selection opens the VBE to that sheet module.

Just close that module to go back to your worksheet. Enter anything in A1 and
the pop-up will occur.

If A1 is a calculated value which changes due to re-calculation you would use a
different type of event code.


Gord



All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com