+ Reply to Thread
Results 1 to 4 of 4

How to edit drop down macro?

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    How to edit drop down macro?

    I have a macro in the drop down boxes that hide & unhide columns... i wish I could say I did it myself but I didn't. I was looking over my sheet & went back to add another option. As you can see in the 2nd drop down box named "Number of related accounts:" the "0" option does not work. I get an error. I want "0" to be an option for those that use this sheet but I don't want anything to unhide...
    Attached Files Attached Files
    Last edited by jgomez; 08-21-2012 at 04:33 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: How to edit drop down macro?

    Hello there,

    Try updating the Private Sub ComboBox2_Change() Event to look like this:

    I have highlighted the change to make the 0 work

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to edit drop down macro?

    Thank you... how or where do you learn to write this language or whatever its called?

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: How to edit drop down macro?

    Hello there,

    Google has been my friend when learning Visual Basic, I just kind of picked it up as I had questions or others had questions.

    Below is an attempted break down of the code you have in your workbook, green are comments.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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