Message Box testing
1.Close and save any open workbooks, and then create a new workbook.
2.Start the Visual Basic Editor (press ALT+F11).
3.If the Project Explorer window is not visible, click Project Explorer on the View menu.
4.In the Project Explorer window, double-click Sheet1 to open the Code window for Sheet1.
5.In the Code window for Sheet1, type or paste the following code for the SelectionChange event:
6.Switch to Microsoft Excel (ALT+F11).
7.Select any cell on Sheet1.
Does the message box show up with cell address?
If no, please open attachment file, run code "EnableEvents". How to Run a code:
1.If the Developer tab is not available, do the following to display it:
- click the Microsoft Office Button , and then click Excel Options.
- in the Popular category, under Top options for working with Excel, select the Show Developer tab in the Ribbon check box, and then click OK.
2.To set the security level temporarily to enable all macros, do the following:
- on the Developer tab, in the Code group, click Macro Security.
- in the Macro Settings category, under Macro Settings, click Enable all macros (not recommended, potentially dangerous code can run), and then click OK.
3.Open attached file.
4.On the Developer tab, in the Code group, click Macros.
5.In the Macro name box, click the macro "EnableEvents".
6.Click Run.
Check Sheet("2011") of the attachment, select any cell, conditional format should work as expected.
Bookmarks