+ Reply to Thread
Results 1 to 1 of 1

Excel 2007 : How to make two VB codes work in harmony?

  1. #1
    Registered User
    Join Date
    11-20-2009
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    How to make two VB codes work in harmony?

    I am fairly new to VB and don't know how to code in VB. I want to accomplish multiple selection from a dropdown list in Excel and also add items in the dropdown list by entering them in the dropdown menu cell. I have the following independent codes to accomplish this:

    Code for multiple selection code -

    Please Login or Register  to view this content.
    Code for adding items in the dropdown menu by typing them in the cell -

    Please Login or Register  to view this content.
    When I paste both these codes after opening "View Code" for a Workbook (Thisworkbook), I am not able to run the data validation list on that sheet as it results into compilation errors. How can I edit the codes to have the functionality I intend to achieve? Even better, could someone help me figure out a way for using these codes for the whole workbook instead of pasting them for each worksheet, as I have 40 worksheets and many workbooks? I have my list on another sheet (Sheet2) and the dropdown menu is on Sheet1 in cell A1. I am a newbie, so I would greatly appreciate detailed instructions. Thank you.

    Edit: I have made changes in the code in "ThisWorkbook" to merge the code.
    Attached Files Attached Files
    Last edited by incisivekeith; 11-22-2009 at 11:53 PM.

+ 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