Consulting

Results 1 to 3 of 3

Thread: Textbox - cannot tab to it on user form

  1. #1
    VBAX Contributor Glaswegian's Avatar
    Joined
    Sep 2004
    Location
    Glasgow, Scotland
    Posts
    196
    Location

    Textbox - cannot tab to it on user form

    Hi

    This one has me tearing my hair out...

    I have a userform which contains 19 textboxes. Users should mark a completion date in box next to the relevant task they have completed. This particular box should be TabIndex 17. However, when tabbing through the textboxes on the form, this textbox will not take the focus. It's as if it isn't there.

    I have deleted it and recreated it; I have deleted it and copied from one of the existing boxes; I have renumbered all the TabIndex values - several times; I have checked and checked the properties of each textbox and they are all the same. The only code involved is on the Exit Event from each Textbox and that is only formatting.

    Each box is Enabled, not Locked, Visible, TextAlign = Left, TabStop=True and so on.

    I have never seen this problem before.

    If anyone can shed any light on this, I'll buy the beer....
    Iain - XL2010 on Windows 7

  2. #2
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    Sample file will help to solve your problem quicker.

  3. #3
    VBAX Contributor Glaswegian's Avatar
    Joined
    Sep 2004
    Location
    Glasgow, Scotland
    Posts
    196
    Location
    Hi

    Thanks for your reply.

    I was just checking the stripped down sample I was creating, and notice that, having removed most of the code behind the form, the tabbing now works correctly. Safe to assume there must be something in the other code that's causing the problem. Not sure what at the moment, but at least I can review what I have and see if I can find the cause.

    Thanks again - I'll be back if I still have problems.
    Iain - XL2010 on Windows 7

Posting Permissions

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