+ Reply to Thread
Results 1 to 4 of 4

Data Validation - Linked to each other

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    325

    Data Validation - Linked to each other

    Hi

    I have posted on here as i think this may require VBA code and i was hoping someone may be able to help.

    I have a spreadsheet with various tabs. I have a validation in cell C2 and one on another tab in cell D2. I am trying to get them to work in conjuction so whichever selection is made from either both will showthe same result, i need them both to be validations though. Is this possible?

    Michelle

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Data Validation - Linked to each other

    You can do this by using Two "Worksheet_Change event" Codes:- One code in each sheet.
    Place in sheet1, Sheet Code Module (This Sheet have "Validation list" in "D2"
    Private Sub Worksheet_Change(ByVal Target As Range)
        If ActiveSheet.Name = "Sheet1" Then
            If Target.Address(0, 0) = "D2" Then
                Sheets("Sheet2").Range("C2").Value = Target.Value
            End If
        End If
    End Sub
    Place in sheet2, Sheet Code Module (This has Validation List in "C2")
    Private Sub Worksheet_Change(ByVal Target As Range)
        If ActiveSheet.Name = "Sheet2" Then
            If Target.Address(0, 0) = "C2" Then
                Sheets("Sheet1").Range("D2") = Target.Value
            End If
        End If
    End Sub

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    325

    Re: Data Validation - Linked to each other

    Dear MickG

    You are a genius, thank you so much for replying it works perfectly.

    Michelle

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Data Validation - Linked to each other

    You're welcome

+ 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. Linked/mirrored Data Validation
    By mcayea in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-12-2014, 01:09 PM
  2. data validation linked with pivot table
    By albert28 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-04-2013, 09:01 PM
  3. Data Validation for linked cell
    By gilbert in forum Excel General
    Replies: 1
    Last Post: 06-13-2011, 05:24 AM
  4. Validation Rule using data from linked tables...
    By redneck joe in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-25-2009, 12:31 PM
  5. Data Validation linked to cell Formula
    By Buzz in forum Excel General
    Replies: 4
    Last Post: 04-30-2006, 03:55 AM

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