Microsoft KB Archive/184444

= XL98: Data Validation Message May Not Disappear =

Article ID: 184444

Article Last Modified on 6/17/2005

-

APPLIES TO


 * Microsoft Excel 98 for Macintosh

-



This article was previously published under Q184444



SYMPTOMS
After a data validation input message appears for a cell, the message may not disappear when you select another cell.



CAUSE
This problem occurs if both of the following conditions are true:


 * An OnKey Visual Basic for Applications procedure is in memory. -and-


 * The OnKey procedure selects a cell other than the active cell.



RESOLUTION
To resolve this problem, click any cell in the active worksheet.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Example
To see an example of this problem, follow these steps:

 Save and close any open workbooks, and then create a new workbook. Select cell A1, and then click Validation on the Data menu. On the Input Message tab, enter any text in the Input Message box, and then click OK. Press OPTION+F11 to start the Visual Basic Editor. On the Insert menu click Module.</li>  Enter the following code in the module: Sub test Application.OnKey "~", "test2" 'When you type data in a cell and press RETURN, the test2 'procedure automatically runs. End Sub

Sub test2 Range("c1").Select End Sub </li> Run the test procedure.</li> Press OPTION+F11 to switch to Microsoft Excel.</li> Select cell A1.

The input message you typed in step 3 is displayed next to cell A1.

NOTE: The input message is displayed by the Office Assistant if the Office Assistant is visible.</li> Type any text, and then press ENTER.</li></ol>

Cell C1 is selected and the input message for cell A1 is still visible.

<div class="references_section">