SOLVED

AfterUpdate of cell - MSG box

%3CLINGO-SUB%20id%3D%22lingo-sub-2348814%22%20slang%3D%22en-US%22%3EAfterUpdate%20of%20cell%20-%20MSG%20box%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2348814%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20how%20can%20I%20show%20a%20message%20box%20once%20its%20updated%3F%26nbsp%3B%20Not%20sure%20if%20this%20can%20somehow%20be%20done%20through%20data%20validation.%26nbsp%3B%20I%20am%20sure%20it%20could%20be%20by%20VBA%20tho.%26nbsp%3B%20Looking%20for%20a%20non%20VBA%20path%20but%20if%20VBA%20is%20the%20only%20way%20then%20I%20am%20ok%20with%20that%20but%20would%20kindly%20need%20the%20code.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2348814%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2348850%22%20slang%3D%22en-US%22%3ERe%3A%20AfterUpdate%20of%20cell%20-%20MSG%20box%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2348850%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1029845%22%20target%3D%22_blank%22%3E%40Tony2021%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20this%20about%20a%20cell%20that%20will%20be%20edited%20by%20the%20user%3F%20Or%20does%20the%20cell%20contain%20a%20formula%3F%20Or%20something%20else%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2352856%22%20slang%3D%22en-US%22%3ERe%3A%20AfterUpdate%20of%20cell%20-%20MSG%20box%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2352856%22%20slang%3D%22en-US%22%3EHI%20Hans%2C%20it%20will%20be%20edited%20by%20the%20user.%20No%20formulas.%20thank%20you%3C%2FLINGO-BODY%3E
Frequent Contributor

Hello, how can I show a message box once its updated?  Not sure if this can somehow be done through data validation.  I am sure it could be by VBA tho.  Looking for a non VBA path but if VBA is the only way then I am ok with that but would kindly need the code. 

 

thank you. 

4 Replies

@Tony2021 

Is this about a cell that will be edited by the user? Or does the cell contain a formula? Or something else?

HI Hans, it will be edited by the user. No formulas. thank you
best response confirmed by allyreckerman (Microsoft)
Solution

@Tony2021 

Right-click the sheet tab of the relevant sheet.

Select 'View Code' from the context menu.

Copy the following code into the worksheet module, replacing all occurrences of A1 with the cell that you want to monitor:

Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Range("A1"), Target) Is Nothing Then
        MsgBox "Cell A1 has been edited. Its value is now: " & Range("A1").Text, vbInformation
    End If
End Sub

Switch back to Excel.

Save the workbook as a macro-enabled workbook (*.xlsm).

Make sure that you allow macros when you open the workbook.

Nice. Thank you. I had thought data validation could do this somehow but VBA is ok too. Thank you Hans.