Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Creating an intentional 'Circular Reference' of sorts in '03 &'07

I would like to create something along the lines of a circular reference
involving text, not numbers.

I have a workbook containing a large number of sheets and at the end is an
index compiling several rows of information from each sheet. What I am hoping
to do is allow changes to certain cells in the index to be reflected in their
sister cells on that item's original sheet, or vice versa, as people are
likely to edit either one without thinking about it not being reflected in
the other position.

Example:

Sheet1, Sheet2, Sheet3, Index

Modification of Sheet1(G9) is mirrored on Index(E15) or vice versa.
Modification of Index(E125) is mirrored on Sheet3(G27) or vice versa.

I imagine this would be done using the SheetChange event to copy the
modified cell contents into the corresponding cell, but am unsure how to
implement this. Any help or pointing in the right direction is great - I
don't mind a having to do a little work to get things going. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Creating an intentional 'Circular Reference' of sorts in '03 &'07

Use something like this (in sheet1) and similarly for all "linked" sheets:

Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False
On Error GoTo errortrap

If Intersect(Target, Range("a1")) Then
Worksheets("Sheet2").Range("a1") = Worksheets("Sheet1").Range("a1").Value
End If


errortrap:
Application.EnableEvents = True

End Sub


"Raymond W." wrote:

I would like to create something along the lines of a circular reference
involving text, not numbers.

I have a workbook containing a large number of sheets and at the end is an
index compiling several rows of information from each sheet. What I am hoping
to do is allow changes to certain cells in the index to be reflected in their
sister cells on that item's original sheet, or vice versa, as people are
likely to edit either one without thinking about it not being reflected in
the other position.

Example:

Sheet1, Sheet2, Sheet3, Index

Modification of Sheet1(G9) is mirrored on Index(E15) or vice versa.
Modification of Index(E125) is mirrored on Sheet3(G27) or vice versa.

I imagine this would be done using the SheetChange event to copy the
modified cell contents into the corresponding cell, but am unsure how to
implement this. Any help or pointing in the right direction is great - I
don't mind a having to do a little work to get things going. Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Creating an intentional 'Circular Reference' of sorts in '03 &

Sorry, that should say:

If not Intersect(Target, Range("a1")) is nothing Then


"Sam Wilson" wrote:

Use something like this (in sheet1) and similarly for all "linked" sheets:

Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False
On Error GoTo errortrap

If Intersect(Target, Range("a1")) Then
Worksheets("Sheet2").Range("a1") = Worksheets("Sheet1").Range("a1").Value
End If


errortrap:
Application.EnableEvents = True

End Sub


"Raymond W." wrote:

I would like to create something along the lines of a circular reference
involving text, not numbers.

I have a workbook containing a large number of sheets and at the end is an
index compiling several rows of information from each sheet. What I am hoping
to do is allow changes to certain cells in the index to be reflected in their
sister cells on that item's original sheet, or vice versa, as people are
likely to edit either one without thinking about it not being reflected in
the other position.

Example:

Sheet1, Sheet2, Sheet3, Index

Modification of Sheet1(G9) is mirrored on Index(E15) or vice versa.
Modification of Index(E125) is mirrored on Sheet3(G27) or vice versa.

I imagine this would be done using the SheetChange event to copy the
modified cell contents into the corresponding cell, but am unsure how to
implement this. Any help or pointing in the right direction is great - I
don't mind a having to do a little work to get things going. Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Creating an intentional 'Circular Reference' of sorts in '03 &

This works perfectly. I was able to easily modify this to watch an entire
range of cells on each page.

Thank you very much for the prompt response!

"Sam Wilson" wrote:

Sorry, that should say:

If not Intersect(Target, Range("a1")) is nothing Then


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
intentional circular reference question Enz Excel Programming 0 April 28th 09 06:19 PM
data tables and intentional circular references Elliot Excel Discussion (Misc queries) 1 August 7th 07 09:22 PM
Need a spreadsheet that sorts by month/yr & 2 other sorts w/total Spreadsheet[_2_] Excel Programming 1 May 19th 06 02:42 PM
If statement to avoid Creating Circular Reference Tim H Excel Worksheet Functions 3 December 22nd 05 05:37 AM
User-defined function creating circular reference Lesa Richmond Excel Programming 4 July 17th 03 01:44 PM


All times are GMT +1. The time now is 07:53 PM.

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

About Us

"It's about Microsoft Excel"