+ Reply to Thread
Results 1 to 5 of 5

mirroring multiple cells across multiple worksheets

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Greater Toronto area, Ontario
    MS-Off Ver
    2013
    Posts
    5

    mirroring multiple cells across multiple worksheets

    Hi,

    I am trying to mirror multiple cells across different worksheets, where I can enter data in one and it automatically updates in the other(s). For instance: same data between (Sheet1, cell b1) and (Sheet 2, cell b2); same data between (Sheet 1, cell b4) and (Sheet2, cell b3). I want to be able to enter data in any of the cells and it automatically updates the other 'same data' cell.

    I have seen suggestions for single mirroring of two cells across two worksheets, but not two or more cells across multiple worksheets.

    Any suggestions would be very much appreciated.

    Thanks!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: mirroring multiple cells across multiple worksheets

    You could use a series of worksheet_change events, one applied to each worksheet.

    The following procedures would keep Sheet1 B1= Sheet2 B4 = Sheet3 C5, and Sheet1 B4 = Sheet2 B3 = Sheet3 C6.

    Sheet1:
    Please Login or Register  to view this content.
    Sheet2:
    Please Login or Register  to view this content.
    Sheet3:
    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Greater Toronto area, Ontario
    MS-Off Ver
    2013
    Posts
    5

    Re: mirroring multiple cells across multiple worksheets

    Thank you so much, daffodil11! I will give it a try.
    Last edited by lb6067; 11-20-2015 at 09:14 AM. Reason: Solution didn't work

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Greater Toronto area, Ontario
    MS-Off Ver
    2013
    Posts
    5

    Re: mirroring multiple cells across multiple worksheets

    Update:

    I gave it a try and it didn't work for me. I might not have explained myself well enough. In the above cell linkages, I want to be able to enter data into any of the cells and have the linked cells update (in both directions, i.e. mirror the other). I did find the following code online that works, but for only a one cell pair correlation. What I need is for at least two pairs of cells.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim r1 As Range, r2 As Range
    Set r1 = Range("C3")
    Set r2 = Sheets("Live Forecast Tool").Range("C3")
    If Intersect(Target, r1) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    r2.Value = r1.Value
    Application.EnableEvents = True
    End Sub


    Update:

    I'm an absolute newbie to VBA and worked every way of integrating a double instance of above and finally got it to work. BIG smile on my face right now :-).

    rivate Sub Worksheet_Change(ByVal Target As Range)
    Dim r1 As Range, r2 As Range, r3 As Range, r4 As Range
    Set r1 = Range("B4")
    Set r2 = Sheets("B2B Revenue").Range("B4")
    Set r3 = Range("G4")
    Set r4 = Sheets("B2B Revenue").Range("D4")
    If Intersect(Target, Range(r1, r3)) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    r2.Value = r1.Value
    r4.Value = r3.Value
    Application.EnableEvents = True
    End Sub
    Last edited by lb6067; 11-20-2015 at 09:16 AM.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: mirroring multiple cells across multiple worksheets

    Just make sure you duplicate the code, but in reverse on each sheet's module for the two-way effect to work.

    I've attached a sample with my code working as intended across three worksheets, in any direction.
    Attached Files Attached Files

+ 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. Macro to sum the product of multiple cells across multiple worksheets
    By ciayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2013, 03:28 PM
  2. [SOLVED] Macro to combine multiple cells from multiple worksheets into one worksheet
    By sharpmarc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2013, 02:42 PM
  3. Copying multiple cells from multiple worksheets to one summary sheet
    By Dragothemensch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2013, 08:39 PM
  4. Replies: 0
    Last Post: 12-10-2007, 09:22 AM
  5. Highlighting multiple cells in multiple locked worksheets
    By andypbarker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2007, 04:20 AM
  6. replicated data in multiple cells on multiple worksheets
    By nam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2007, 11:08 PM
  7. Excel should allow mirroring of multiple cells
    By Doyle_D in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2005, 03:06 PM
  8. adding certain cells in multiple worksheets in multiple workbooks
    By Stephen via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2005, 05:06 PM

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