+ Reply to Thread
Results 1 to 24 of 24

Mirror cells on four sheets and reusable

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Mirror cells on four sheets and reusable

    I have a workbook with many worksheets and when I enter a checkmark in a cell on sheet 1, I want it duplicated on sheets 2,3 and 4. I have used "=A1", but if that formula is manually removed with a different entry, I need to re-write that formula in the cell so the workbook can be used again. I tried a list of all the cells and doing formula using VBA, but that seemed to take a long time to re-write the code in the cells. I used the below formula in a few places and decided to try it. I like it that it is reusable and I don't have to re-write the links, but it is also very slow writing the checkmark to the other cells on the other 3 sheets. Doe snayone know of a effecient way to do this and be reusable? Thanks for any help.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    Why isn't this:
    Please Login or Register  to view this content.
    always 2
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Quote Originally Posted by xladept View Post
    Why isn't this:
    Please Login or Register  to view this content.
    always 2
    Sorry, not sure what you mean by "always 2". What should be 2?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    Well for "Cells(1,1)" The Column is always 1 and 1+1=2??

  5. #5
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Well to be honest I searched the internet for something that would work and found this, tried it and it does! I know little about VBA, slowly learning from trial and error and have about 200 pages of code in this workbook, but I know it's not very efficient, but it is working. As I learn more, I go back and recode the first stuff and hopefully it get's better. But, you have more stumped here, so if you could please provide help, would be appreciated. So, would it work better without the +1?

  6. #6
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    I removed the +1 and it puts the checkmark in sheet2 one column to the left of where it should be.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    I'll take a longer look tomorrow

  8. #8
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Thanks xladept! Really appreciate it.

  9. #9
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    I wonder, would it work, more efficient, faster if I had the formulas off to the side or even on a hidden worksheet and just copy and past them in sheets2-4 using vba instead of using vba to write the formula (sheet1.range("B1").formula = "='L-EX 1_2&4-VP(51)'!R68" for example? Not sure if this is better?

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    I'm stymied can you either post the whole code or:both?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  11. #11
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    I figured you were going to ask, which I know helps greatly, so here is a real simple example. Enter something in cells A1-A6 and it is mirrored in same cells on sheets 2 and 3. Column B1-B6 also has the old standby =A1 reference, but if it is written over, the formula is gone and I need this to work again and again if they want to reuse the same data, except make small changes where needed.
    Attached Files Attached Files

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    How about:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Sweet! That looks more efficient! I don't want/need this for every page in the working project, only 3 pages out of the 49. How would you could it then?

    I just tried to delete what I entered and the formula you provided does not do this. I have to go to the other sheets to delete the mirrored values.

    One more thing, I can't have this mirror every cell on the worksheet, only select cells. So that would mean I would have to name the range of cells this can only work on. Thanks!
    Last edited by thecdnmole; 03-26-2015 at 08:18 PM.

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    I'd put their names in an array and only access those three. You don't have to name the range but only allow the procedure if the Target is in that range

  15. #15
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Can you provide an example? I was thinking this, as below, but that limits data entry, not which sheets are mirrored to.
    Please Login or Register  to view this content.

  16. #16
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    What are the sheet names?

  17. #17
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Sheet4 is the main data entry sheet and sheet19, sheet20 and sheet21 are the mirrored sheets.

  18. #18
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    Try this:

    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Thanks! It works 100% on my test workbook, but when I put it into the real workbook I get "Runtime error 9", subscript out of range! It works though if I do this...
    Please Login or Register  to view this content.
    any suggestions?

  20. #20
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    It looks as though Sheet ought to be lower case:

    Please Login or Register  to view this content.

  21. #21
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Thanks, but that did not work either. Maybe it's because I am putting it in a double-click event??

  22. #22
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    Well - Can I see the current event code?

  23. #23
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Mirror cells on four sheets and reusable

    Thanks for your help xladept, I will just use my last revision of your code, with a line for each sheet which works just as fine. Much appreciated!

  24. #24
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Mirror cells on four sheets and reusable

    You're welcome and thanks for the rep!

+ 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. [SOLVED] Mirror range of cells in different sheets?
    By fishermanryan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-10-2014, 10:56 AM
  2. Mirror Data between Sheets
    By brittarees in forum Excel General
    Replies: 3
    Last Post: 11-04-2013, 05:23 PM
  3. [SOLVED] how to create mirror copy of sheets
    By amarjeet.it in forum Excel General
    Replies: 5
    Last Post: 03-09-2013, 09:17 AM
  4. Mirror row deleting on multiple sheets.
    By MarVil85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2012, 02:59 PM
  5. Mirror multiple cells in different sheets
    By abarney in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2012, 03:13 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