Results 1 to 4 of 4

Thread: How to make limit in text field please..???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    185

    How to make limit in text field please..???

    Dear Expert,

    I would like to create a Purchase Order form using Microsoft Words, using userform...when fill in the textfield (bookmarked form field), I can type it without limit...How to make it limited typed..For Example: in the TextBox1, how to make it limit up to 5 digits. i.e. PO001, instead of like this. i.e. weurwuerowieuroiwurwie....(in the TextBox1) and then automatically tab to the next textfield please???...

    Please help me..I attached a file regarding to this matter. Please find my attached file.

    Thank you for your kind helps..

    Best Regards,

    Jennifer
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    Re: How to make limit in text field please..???

    VB Code:
    1. TextBox1.MaxLength = 5
    2. TextBox1.AutoTab = True
    Last edited by M.Nolan; Dec 6th, 2005 at 09:21 PM.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    185

    Resolved [Resolved] How to make limit in text field please..???

    It works...!!!...Thanks very much for your fast helps.

    Best Regards,

    Jennifer

  4. #4
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: How to make limit in text field please..???

    Quote Originally Posted by zach007
    Dear Expert,

    I would like to create a Purchase Order form using Microsoft Words, using userform...when fill in the textfield (bookmarked form field), I can type it without limit...How to make it limited typed..For Example: in the TextBox1, how to make it limit up to 5 digits. i.e. PO001, instead of like this. i.e. weurwuerowieuroiwurwie....(in the TextBox1) and then automatically tab to the next textfield please???...
    Jennifer
    Hi Jennifer,

    To restrict the length of that field. Just right click that field select properties which will show you that form field properties. using that you can set the length, default text, text format, which macros you want to run, etc.
    __________________
    CS.

    If a post has helped you then please Rate it!
    If your post is resolved go to your original post and add the [IMG][/IMG]Message icon to your thread and/or edit the Subject and add [Resolved] or something similar.

Posting Permissions

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



Click Here to Expand Forum to Full Width