ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA DataEntryMode bug? (https://www.excelbanter.com/excel-programming/438717-vba-dataentrymode-bug.html)

Ian Digby[_2_]

VBA DataEntryMode bug?
 
Here's a weird thing:

1. Inexplicably, after running some farily standard VBA code, my Excel
application was left in DataEntryMode , thus disabling various menu options.

2. The last line of my code was:
MsgBox "Update Complete.", vbInformation

3. Tried turning off DataEntryMode - problem persisted.
2. Tried issuing an escape keystroke, after the MsgBox:
SendKeys "{ESC}", True
Problem persisted.

3. Moved the SendKeys line to run before the MsgBox, and it works fine.

Comments?

Ian Digby, Meggitt


All times are GMT +1. The time now is 05:32 PM.

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