+ Reply to Thread
Results 1 to 30 of 30

macro to populate list/combo box, then delete selected sheet and rows on other sheets

Hybrid View

drewship macro to populate list/combo... 11-12-2010, 01:17 PM
jaslake Re: macro to populate... 11-12-2010, 06:35 PM
jaslake Re: macro to populate... 11-12-2010, 09:09 PM
drewship Re: macro to populate... 11-15-2010, 08:21 AM
drewship Re: macro to populate... 11-15-2010, 09:09 AM
  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    macro to populate list/combo box, then delete selected sheet and rows on other sheets

    Hello all. With a lot of help, I believe I have the necessary code to add new member sheets and rows on established sheets. Now I would like a macro to have a list/combo box automatically populate with the names (first and last) on the Scout totals sheet, then delete the selected member from the Counts sheet, the Scout Totals sheet, and finally delete the member's sheet from the workbook. This will make it very simple to reuse it every year when the older members move on and need to be removed from the workbook.

    Thanks in advance for your assistance!!

    Andrew
    Attached Files Attached Files
    Last edited by drewship; 11-22-2010 at 12:24 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to populate list/combo box, then delete selected sheet and rows on other sh

    Hi Andrew

    I'm working on the logic of your workbook and have a question.

    Why are there names in Scout Totals that don't appear in Counts? There are 18 names (including 0...by the way, what is 0) in Scout Totals and only 14 names in Counts.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to populate list/combo box, then delete selected sheet and rows on other sh

    Hi Andrew

    Try the attached. I believe it does as you described. Let me know of issues.

    John
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: macro to populate list/combo box, then delete selected sheet and rows on other sh

    jaslake, to answer your first question, it is because those were failed entries. The code crashed before the names could be created in the Counts sheet. I will check out your code and let you know how it does.

    Thanks!!
    Andrew

  5. #5
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: macro to populate list/combo box, then delete selected sheet and rows on other sh

    How do I replicate the Remove Scout button on my sheet? Tried a couple things but I am not familiar with how you made and linked the button to the code.

    Thanks,
    Andrew

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to populate list/combo box, then delete selected sheet and rows on other sh

    Hi Andrew



    I replaced your Form Control Button with an ActiveX Control Button. Assuming you're using Excel 2007 (as your profile indicates):
    • Developer -> Insert -> ActiveX Control
    • Right Click on the Button to see your options (Properties, View Code, etc.)
    • Or, simply Copy -> Paste the button then Right Click
    I assume this is what you're asking.

    John

+ 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