+ Reply to Thread
Results 1 to 5 of 5

UserForm Control Display

  1. #1
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Question UserForm Control Display

    Gents,

    If I call UserForm2 from button attached on UserForm1 (CommandButton1) , then I can't click again other button on the UserForm1 (let's say: CommandButton2) because of UserForm2 activated.
    What is the code that I can use to enable click button on the UserForm1 while the UserForm2 is activated? (then the next steps is the UserForm2 will be hided/disappeared if any other button enable to click on the UserForm1 (CommandButton2).
    Thanks in advanced for your helps.

    Regards,
    Iqballhud
    Attached Files Attached Files

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: UserForm Control Display

    Good morning iqballud

    You make is modal.
    It's easy enough : something like this should do :
    Please Login or Register  to view this content.
    This will allow the focus to be on another object other than the userform.

    The default is always modeless (focus on userform only), but lazy Microsoft programmers seemed to set it so that anything following the "Show" command would make a userform modal. Try replacing the "modal" with "0", or "Jim" or even "modeless". Interestingly, "0" is the only numeric character accepted - anything else will generate an error.

    HTH

    DominicB

  3. #3
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: UserForm Control Display

    Good morning too DominicB,

    I've been tried as your advice, unfortunately still not working.
    Please Login or Register  to view this content.
    Regards,
    Iqballhud

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: UserForm Control Display

    Hi iqballud

    I can't tell from your post what problem you're having, so apologies if I'm speaking way below your level here ...

    You do know that each userform has only a label, and that labels aren't designed to be altered by the end user? They are just that. A label.
    I have taken your file and amended it slightly putting a textbox on the user form, that an end user can alter, and it seems to work OK.

    HTH

    DominicB
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: UserForm Control Display

    Hi DominicB, thank's to be patient with me...you are great Man...appreciated to you.
    Your code is working and as my expectation.
    Thank you Sir.

    Best Regards,
    Iqballhud

+ 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. UserForm help - display list of open workbooks except workbook userform code is in
    By kensweep in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2014, 12:26 PM
  2. [SOLVED] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  3. [SOLVED] Public Sub to control display location of any UserForm (Office 2010)
    By avr5iron in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2013, 06:47 PM
  4. Display a UserForm based on Data selected in another UserForm's ListBox
    By RPhilbin83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2011, 11:35 AM
  5. Unable to Display a Userform from an ActiveX Control
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-10-2007, 03:05 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