+ Reply to Thread
Results 1 to 3 of 3

Keeping focus on TextBox, save with each change

  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Keeping focus on TextBox, save with each change

    Hello Friends,

    I have form, which I use to enter data in Excel.

    The thing is I have Form with five comboboxes with one txtbox.

    I need a code for to when ever i change text in txtbox, i want that save to sheet. and combobox values remain same till i click clear.
    and cursor always needs to be in txtbox till i click on the combos.

    everytime i change text in txtbox the cursor moving to next combobox.
    so i dont want happen it, i just want cursor stay on txtbox. can anybody help pls?

    I am poor at asking questions and help? so if you dont understand my above question pleaes ask me.

    thank you,
    venkat

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Keeping focus on TextBox, save with each change

    The following code inserted into your userform code will do what you need.

    I tried using the textbox1.exit code but it didn't work.


    Please Login or Register  to view this content.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Keeping focus on TextBox, save with each change

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Keeping form focus
    By Cbrehm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2010, 01:46 PM
  2. Change textbox backcolor then save workbook?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2008, 07:52 AM
  3. Keeping focus on a txtbox 2
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2006, 09:25 PM
  4. Keeping The Focus From Changing. How?
    By abxy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2005, 04:08 PM
  5. Keeping focus
    By Ron Coderre in forum Excel General
    Replies: 4
    Last Post: 06-28-2005, 09: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