+ Reply to Thread
Results 1 to 3 of 3

Multiple list entries in multiple cells

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Multiple list entries in multiple cells

    Hello,

    I have an expense report spreadsheet that I want users to fill out monthly. Based on what they enter in certain columns, I'd like the spreadsheet to automatically generate an accounting code. The only problem is that certain fields require multiple entries.

    For example, a purchase can be made for multiple locations so users would potentially need to be able to select San Antonio, Dallas, Austin, etc. from one drop down box. I found a macro at contextures.com (below) which allows me to do exactly this.

    Please Login or Register  to view this content.
    However, I need this macro to work in multiple columns like Location, Department, Expense Type, etc. I have attached the spreadsheet from where I got the macro. It's under the "SameCellAddRemove" tab. For some reason, the macro doesn't allow for this to be used in multiple columns. Does anyone know what the problem is or how I can fix this?

    Any help is appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple list entries in multiple cells

    Forgot to include that the way I tried to make this work for other columns was to simply past the macro again and change the names of rngDV, oldVal, newVal, etc. Target, and lused to something different (rngDV2 for example). I also changed "If Target.Column = 20 Then" to "If Target.Column = 21 Then".

  3. #3
    Registered User
    Join Date
    02-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple list entries in multiple cells

    Nevermind. Figured it out and now I feel silly.

    For those wondering what I did, If "Target.Column = 20" just needed to be changed to If "Target.Column = 20 or 21 or 22 etc..."

    Can a mod please close this?

+ 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