+ Reply to Thread
Results 1 to 2 of 2

Improve userform using vba

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    20

    Improve userform using vba

    Hi. I created a survey form using excel. But I will be very much pleased about it being fine-tuned for better administering of the survey and easier management of data results. I hope it will be modified according to the following conditions:

    1. Multiple answers for each case is not allowed. That is, if the user chose ANSWER D for instance, then he/she will not be allowed to mark another answer altogether.
    2. If ANSWER U is marked, user will be required to fill out columns U1 and U2.
    3. User will not be able to close the excel form if not all cases have been completely answered. Likewise in the case where User chose ANSWER U, he/she will not be able to close it until columns for U1 and U2 have been filled out.
    4. The form will be reproduced with completely different number of cases each copy (some can even reach up to more than 2,000), so I was hoping that the form will not be limited by the number of rows defined in the sample excel form.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-04-2012
    Location
    US
    MS-Off Ver
    Word, Excel, Access all 2007 & 2010. Outlook 2010
    Posts
    56

    Cool Re: Improve userform using vba

    Hi, this seems to work well and within your requirements too. To handle the "no missing answers" requirement I did add one column; I hope that will work for you. I would also recommend that you fill your combobox list in the validation itself or via code, they tend to get changed accidently when they are part of the sheet being used like this.

    excel help (04032013).xlsm

    Anyone that happens to "like" the results provided here should feel encouraged to click the star in the bottom left corner of this post to add to my reputation.

    Cheers!
    k


    Option | optionbox | Last | Row | Range | Events | Loop Rows | Mutually Exclusive | Find | Current Cell | Blank | Blanks | Target | List Range | BeforeClose | workbook | worksheet | close | searchdirection | clearcontents | Named

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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