+ 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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,391

    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!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,295

    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)

Similar Threads

  1. How to Create Multiple Dependent Drop Down Lists?
    By Dieterl in forum Excel General
    Replies: 10
    Last Post: 10-30-2018, 02:36 PM
  2. [SOLVED] How to create multiple drop down lists from a liat selection
    By AlphaCraig in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2017, 08:50 AM
  3. Replies: 5
    Last Post: 12-23-2016, 10:12 AM
  4. Replies: 8
    Last Post: 08-11-2016, 11:07 AM
  5. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  6. How to create an order form with drop down lists that populate multiple cells
    By d_washington in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2012, 10:23 AM
  7. How do I create a Macro to sort data and insert blank rows & subto
    By karinmpfa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2006, 05:10 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