+ Reply to Thread
Results 1 to 5 of 5

Using Macros with Data Validation

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using Macros with Data Validation

    Hi all,

    I have set up a Data Validation List with a table beside it. What I want to do is input Data in the table that is linked to the header selected in the list.

    The problem is, whenever the header in the list changes, the data remains the same, so I have since had to give each header its own worksheet as opposed to using the list.

    I am sure there is a way to keep it all in one sheet. Can anyone help?
    Sam

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Using Macros with Data Validation

    Post a sample data set as your question is too ambiguous for me to help with.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using Macros with Data Validation

    Thank you for your reply.

    The Data Validated list reads:
    Hospital Based Pathways
    Integrated Care
    Corporate
    Children, Young People & Families
    Estates & Facilities

    Beneath this, I have a table that has April 2013 to March 2014 along the coloumns, and Activity & Cost on the rows:

    2013/14
    Hospital Based Pathways

    Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar
    Activity 245 640 455 547 548 544 495 602 594 601 608
    Cost 549

    Whenever I change the Hospital Based Pathways to another header from the list, I want the figures to be removed for me to put in new data.

    Any better?

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Using Macros with Data Validation

    Post an excel workbook with sample data and a sample solution mocked up.

  5. #5
    Registered User
    Join Date
    02-21-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using Macros with Data Validation

    Please see attached.

    When I change the header (the Data Validated Cell), I want the data to disappear, allowing me to put in a new set of data for the header now selected.

    SO it currently has data for Cancer & Core Functions, I want to select Corporate, and be able to put in new data.
    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. Dependant Data Validation and Relative Referrence in Macros
    By DamienPalmer in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-08-2014, 01:42 AM
  2. Reset Dependent Data Validation selections without macros?
    By Eric09 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2012, 07:52 AM
  3. Data Validation Macros
    By Helion23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 09:30 AM
  4. link macros to more than one data validation drop list
    By Vandor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2009, 07:01 PM
  5. Data Validation & Macros
    By Michael Link in forum Excel General
    Replies: 2
    Last Post: 03-09-2005, 02:06 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