+ Reply to Thread
Results 1 to 5 of 5

Multiple values in drop-down lists and macro to create new rows of blank data

  1. #1
    Registered User
    Join Date
    01-10-2020
    Location
    Madrid, Spain
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    3

    Multiple values in drop-down lists and macro to create new rows of blank data

    Hello, this is my first post here so I'm not sure it's in the right place - feel free to move it if necessary.

    I'm currently an ESL teacher (English as a Second Language), taking a master's level course. As part of the course, candidates have to create an 'Observation Instrument' which is used to track data in ESL classes, be it from teachers, students, materials, classroom management etc. This OI is not supposed to be created on Microsoft Excel (basic Word tables are fine), but I thought that Excel would allow me to be more creative. Unfortunately, I am no expert, so I'm looking for some help.

    My spreadsheet includes a table which tracks language errors and teacher corrections in ESL classes. For the 'Correction Technique' and 'Student Response' field, I would like a drop-down list to select multiple options. As far as I'm aware, Excel only allows the selection of one option for drop-down lists, so I researched a way to select multiple options. I came across a guide and played around with VBA. The table works now as I'm able to select multiple values in the drop-down list. However, if I want to edit cell J7 (the number of students), it always retains the original value of the cell. I have to delete the original value and then type in the new value to make it function properly. Presumably, this is because I've set the VBA to work fully across Column J instead of the selected cells I want. Is there a way to only allow this VBA to operate on cells J12-J30 and K12-K30?

    Additionally, chances are that there will be many more than 10 errors in these classes (observations last one hour). I'm looking for a way to create a macro that creates a new blank row in the table (see rows 32-33), continuing the numbered list. Is there a way to create a macro which does this?

    Thanks for any help, and let me know if anything is too confusing! I should add, that if you can help, please try to do so in the simplest way possible so I can follow, haha.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription Insider (Win 10 - Home)
    Posts
    35,343

    Re: Multiple values in drop-down lists and macro to create new rows of blank data

    Moved to VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    01-10-2020
    Location
    Madrid, Spain
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    3

    Re: Multiple values in drop-down lists and macro to create new rows of blank data

    Can anyone help please?

  4. #4
    Valued Forum Contributor
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    737

    Re: Multiple values in drop-down lists and macro to create new rows of blank data

    Hi.
    Going in small steps.
    You have encountered the nemesis of VBA (the merged cell (J7))
    For reasons largely unknown VBA gets terribly confused when allocating/manipulating data in merged cells.
    There is only one simple rule 'do not use merged cells' they are unpredictable.
    torachan.

  5. #5
    Registered User
    Join Date
    01-10-2020
    Location
    Madrid, Spain
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    3

    Re: Multiple values in drop-down lists and macro to create new rows of blank data

    Okay thanks, I'll try and configure it without merged cells.

    Could anyone tell me whether the macro is possible for the new data fields? And possibly how to create it? Thanks.

+ 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