+ Reply to Thread
Results 1 to 2 of 2

Send Cursor Back To Textbox After Invalid Entry

  1. #1
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Send Cursor Back To Textbox After Invalid Entry

    I have this code that triggers a textbox (empl_surname) AfterUpdate procedure.

    Please Login or Register  to view this content.
    When the user enters an invalid value, how do I send the cursor back to the textbox without having thye user click on it? I thought that was what SetFocus would do.

  2. #2
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Re: Send Cursor Back To Textbox After Invalid Entry

    I changed from AfterUpdate to Exit and used the Cancel feature. This seems to work for my purposes now.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Instruction to get cursor back to a certain cell
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2019, 07:41 AM
  2. [SOLVED] Setting focus back to textbox after cell populate for next entry
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-14-2017, 11:50 AM
  3. How to set cursor back to textbox on a userform when validating data?
    By excelkann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2016, 03:48 AM
  4. Bring the cursor back to the first tab if a multitab workbook
    By strmnv3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2015, 04:57 PM
  5. [SOLVED] Textbox Value is invalid, end sub?
    By excellenthelp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2014, 04:02 PM
  6. Set active cursor in TextBox (blinking cursor)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2009, 10:54 PM
  7. Writing Macro - How to get the cursor/Active Cell back to top of W
    By Michele.Nextel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1