Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set Focus in "Form" environment
Use the exit event and set cancel = true if there is a problem.
-- Regards, Tom Ogilvy "Gus Gazepis" wrote in message ... I'm using a form that contains numerous text boxes to retrieve data for an application. A particular text box in this form requires numerical data to be within a specific range. I need to detect out of range data and permit correction. I've written a "Private Sub" that runs "AfterUpdate". It produces a "MsgBox" that identifies the condition, however, I can't figure out how to set the focus on this text box after acknowledging the "MsgBox" prompt. The "txtBox.SetFocus" command apparently does not work in the "AfterUpdate" mode. Can anyone suggest code to accomplish this? Thanks, Gus Gazepis |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Drop-down list on simple excel 2003 form using "form" from data me | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
any formula to convert numbers in word form, e.g. "2" as "Two"? | Excel Worksheet Functions | |||
function to return day in the form "Monday", "Tuesday" etc given . | Excel Worksheet Functions | |||
Replace dialog should put focus on "Find What" not "Replace With" | Excel Discussion (Misc queries) |