Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Worksheet link

Posted on 2011-03-07
7
Medium Priority
?
272 Views
Last Modified: 2012-05-11
Hi, i want to know how to create a link between worksheets in the same workbook.

Example: i enter 25 in the sheet1 A1, this automatically appears in sheet2 A1 and if i enter 35 in sheet2 A1 then the value in sheet1 A1 change to 35, any idea?

This cannot be done with a formula
0
Comment
Question by:joyacv2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35056842
>>"This cannot be done with a formula"

Can I ask why not?
0
 
LVL 1

Author Comment

by:joyacv2
ID: 35056880
Because when you write in the cell A1 in the sheet 2 for example, and the cell contains a formula "=sheet1!A1", you erase the formula. The link can be done one way using a formula, but how i can do in two way. I will use this for the entire sheet. Thank you for your help!
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35056904
Oh sorry - I misread the last part of the question. You will need code for this - is that OK?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:joyacv2
ID: 35056914
Ok, no problem, perfect
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 35056996
Right-click the tab for Sheet1, choose View Code then paste this in:
Private Sub Worksheet_Change(ByVal Target As Range)
   On Error Resume Next
   Application.EnableEvents = False
   Sheets("Sheet2").Range(Target.Address).Value = Target.Value
   Application.EnableEvents = True
End Sub

Open in new window


repeat for Sheet2, but changing the Sheets("Sheet2") part to Sheets("Sheet1")
0
 
LVL 1

Author Comment

by:joyacv2
ID: 35057076
Works perfect! Exactly what i want!
0
 
LVL 1

Author Closing Comment

by:joyacv2
ID: 35057085
Excelent
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question