Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop-down list on simple excel 2003 form using "form" from data me S Beals Excel Discussion (Misc queries) 0 March 2nd 10 08:35 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
function to return day in the form "Monday", "Tuesday" etc given . MTro Excel Worksheet Functions 2 October 3rd 07 09:49 AM
Replace dialog should put focus on "Find What" not "Replace With" Michael Williams Excel Discussion (Misc queries) 0 May 24th 06 12:45 PM


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"