Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mattflow
 
Posts: n/a
Default Same data box on two pages?


Is it possible to have the same data box on two sheets, such that you
can change either box and they both change?


--
mattflow
------------------------------------------------------------------------
mattflow's Profile: http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=386291

  #2   Report Post  
Rowan
 
Posts: n/a
Default

Assuming you are meaing a cell when you say data box then you can achieve
this using the change events on the sheets. So if you want to have cell A1 on
Sheet2 equal whatever is in cell A1 on Sheet1 and vice versa then right click
on the Sheet1 sheet tab and select View code. Paste this macro onto the code
sheet:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Application.EnableEvents = False
Sheets("Sheet2").Range("A1").Value = Target.Value
Application.EnableEvents = True
End If
End Sub

The right click on the Sheet2 sheet tab, select view code and past this macro:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Application.EnableEvents = False
Sheets("Sheet1").Range("A1").Value = Target.Value
Application.EnableEvents = True
End If
End Sub

Now if you change cell A1 on either sheet, A1 on the other sheet will also
change.

Hope this helps
Rowan

"mattflow" wrote:


Is it possible to have the same data box on two sheets, such that you
can change either box and they both change?


--
mattflow
------------------------------------------------------------------------
mattflow's Profile: http://www.excelforum.com/member.php...o&userid=25129
View this thread: http://www.excelforum.com/showthread...hreadid=386291


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table show pages but omit those without data Angus Excel Discussion (Misc queries) 0 June 16th 05 06:04 PM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 12:40 PM
Import Data Keeps asking for Password Dominator Excel Discussion (Misc queries) 0 June 5th 05 11:25 PM
Pivot table - printing specific data Doug Excel Discussion (Misc queries) 1 April 24th 05 08:29 PM
Copying conditional formatting...HELP PLEASE!!!! trixiebme Excel Worksheet Functions 3 March 24th 05 01:53 PM


All times are GMT +1. The time now is 07:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"