+ Reply to Thread
Results 1 to 4 of 4

Run Macro on Listbox Selection

  1. #1
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Run Macro on Listbox Selection

    Within the attached i want certain changes to occur on selection of Condition A

    So if Condition A =Yes then I want the question in yellow (G33, G44, G50,G51) to automatically be set to "N/A", if it is condition A is either blank or No then these should be empty and free to select. Is the best way to achieve this via a Macro?
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Run Macro on Listbox Selection

    First, get rid of merged cell, advice in attached link explains how to use them.
    Consider using a VBA/macro driven UserForm that cycles through the question then record the marks to a data sheet.
    torachan.


  3. #3
    Registered User
    Join Date
    06-14-2005
    Location
    London
    MS-Off Ver
    2016
    Posts
    91

    Re: Run Macro on Listbox Selection

    Thanks Torachan, noted not to merge cells. Certainly i can appreciate there are slicker ways to do this however I have a number of limitations (inc time) so am working with what i have / Know.

    The data is also picked up on a seperate table however there are comments fields associated to each question and the intention is to use the forms to review the responses and comments were there are concerns.

    I am simply trying to speed up the process of scoring by pre-populating fields where they can be

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Run Macro on Listbox Selection

    try the attached - macro on the Worksheet_Change event of 'D5'
    Attached Files Attached Files

+ 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. Excel VBA Run different macro Listbox with each Selection
    By ncast009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2020, 10:24 PM
  2. Issue with range selection in ListBox macro
    By philozelda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2014, 02:21 PM
  3. Macro with selection in listbox
    By emilki in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2013, 02:01 PM
  4. [SOLVED] Run macro if selection changed in multiselect listbox
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2013, 09:11 AM
  5. Replies: 12
    Last Post: 08-28-2012, 07:09 AM
  6. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  7. [SOLVED] Listbox selection as a parameter in data extraction macro.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2010, 12:28 PM

Tags for this Thread

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