Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
replace VBA run-time error message with custom message | Excel Programming | |||
Replace Excel Message w/Custom Message | Excel Programming | |||
Intercept/replace standard 'cell protected' message with my own message? | Excel Programming | |||
Opening an attachment of a message that has a message as attachmen | Excel Programming | |||
Displaying a message in a message box without requiring user to click anything to proceed | Excel Programming |