+ Reply to Thread
Results 1 to 4 of 4

Userform - "Case" functionality not working anymore

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    Userform - "Case" functionality not working anymore

    Hi, can you help out with the attached file. The userform "choosedoc" is programmed with the Case functionality in Module 1 so that I can change the values of those optionbuttons and make it different per sheet. It was working before and I suspect that the culprit is when I added a few more userforms which might have screwed something with the case statement because now, all sheets contain the same optionbutton values regardless of what sheet it is. I just want it that the Optionbutton values in "choosedoc" be different and be changeable for every sheet that I would add.

    Also, if it is indeed the reason as to why "case" is not working anymore, If I am to add more Userforms in the future, how can I ensure that it will still work?
    Attached Files Attached Files

  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,259

    re: Userform - "Case" functionality not working anymore

    Hello paradoxofthecat,

    You were calling the wrong macro from each of the buttons and the macro was display the wrong form. The attached workbook has the changes added.

    Command Button Code
    Please Login or Register  to view this content.
    Module1 - Select Case Macro
    Please Login or Register  to view this content.
    Attached Files Attached Files
    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
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    re: Userform - "Case" functionality not working anymore

    Wow thanks Leith! +Rep for you!

    If I will adding more userforms, will that again mess it up?

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

    re: Userform - "Case" functionality not working anymore

    Hello Hello paradoxofthecat,

    You're welcome. If you follow what I did, adding more forms should not be a problem.

+ 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. VBA code not working anymore
    By random379 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 03:01 AM
  2. Adding Checkbox functionality to working Userform
    By rocki in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2010, 02:42 PM
  3. Filter is not working anymore.
    By Berry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2006, 02:45 AM
  4. [SOLVED] VLOOKUP not working anymore
    By Phil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2006, 02:45 PM
  5. [SOLVED] unselecting not working anymore?
    By Joe Magiera in forum Excel General
    Replies: 1
    Last Post: 08-31-2005, 11: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