Validation tables

ira daboy

New Member
Joined
Oct 10, 2013
Messages
20
Office Version
  1. 365
Platform
  1. Windows
What I have is two data validation lists. One in cell H2 on sheet 1 and one in cell C7 on sheet 2. What I would like to be able to do is if I change H2 it will be copied in cell C7. Also if I change cell C7 it will be copied in cell H2. Just so can do it in either place. So I don’t have to jump from page to page. Does anyone know if this is possible?

thanx
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You can do this using two worksheet change event subs. To enter sheet modules, right-click on the tab, select View Code and put the code in the empty window that appears on the right of the screen. I'm assuming both validation lists accept values from either list? Just change the sheet names to suit.
Put this in sheet one:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.CountLarge = 1 And Not Intersect(Range("H2"), Target) Is Nothing Then
        Application.EnableEvents = False
        Application.ScreenUpdating = False
        Target.Copy
        Worksheets("Sheet2").Range("C7").PasteSpecial xlPasteValues
        Application.CutCopyMode = False
        Application.EnableEvents = True
    End If
End Sub

and this in sheet two:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.CountLarge = 1 And Not Intersect(Range("C7"), Target) Is Nothing Then
        Application.EnableEvents = False
        Application.ScreenUpdating = False
        Target.Copy
        Worksheets("Sheet1").Range("H2").PasteSpecial xlPasteValues
        Application.CutCopyMode = False
        Application.EnableEvents = True
    End If
End Sub
 
Upvote 0
Solution
This is just what i wanted. Sorry for the delay but i was away.

Thanks Kevin,
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,612
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top