+ Reply to Thread
Results 1 to 4 of 4

Userform multiple textboxes

  1. #1
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Userform multiple textboxes

    Hi guys , I want to start this thread by thanking for help I received here a couple of days ago with my previous problem.

    Now Ive tipped straight into next project . but i dont think this is as difficult.

    I have 40 text boxes which im gonna operate as buttons , and I started on a code like this:

    Please Login or Register  to view this content.
    But there must be a better way to do this then to add 40 subs one for each number ?
    if anyone could help me make a loop code or something it would be much appreciated ..

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Userform multiple textboxes

    Hello colddeck84,

    From what you posted, there could be a problem here. Since the TextBoxes are enabling all the UserForm controls, my assumption is all the UserForm controls have been disabled. If these TextBoxes are on the same UserForm as the other controls would not they also be disabled?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    Re: Userform multiple textboxes

    Look at the Date Form in the attached. It uses an array of control instances for controlling multiple buttons;
    Attached Files Attached Files

  4. #4
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Userform multiple textboxes

    Hi thanks guys for your replies.

    Quote Originally Posted by EssoExplJoe View Post
    Look at the Date Form in the attached. It uses an array of control instances for controlling multiple buttons;
    - This is actually quite similar to what I'm gonna make, except that for a cleaner look i've decided to go with textboxes.
    Is this a bad idea ? Looking at this not I guess I can manipulate the btn the same way ?

    I have not been able to figure out how to get the focus away from the textbox - so instead I disable the textbox when its clicked.

    I hope this was enough to answer Leith Ross questions also ?

    Edit: You know (lol) maybe Ill just use the calendar in the attached
    Last edited by colddeck84; 09-14-2017 at 02:36 PM.

+ 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] IF multiple textboxes in Userform = Nothing
    By Catsonheat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-16-2017, 05:48 PM
  2. VBA Userform Multiple Textboxes to Find Record
    By chamowllie01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2016, 10:06 AM
  3. Format Multiple Textboxes at once in a Userform
    By Dan... in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2015, 05:34 PM
  4. Replies: 1
    Last Post: 02-17-2015, 07:11 AM
  5. [SOLVED] Changing multiple textboxes format on a userform
    By Raylou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2014, 10:11 AM
  6. Formatting Multiple Userform Textboxes
    By badeye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2010, 09:14 AM
  7. [SOLVED] Arrow key operation among multiple TextBoxes in a UserForm
    By George in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-13-2005, 11:06 PM

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