+ Reply to Thread
Results 1 to 4 of 4

How do I cause my macro to 'auto-update' whenever linked cells are updated??

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    18

    How do I cause my macro to 'auto-update' whenever linked cells are updated??

    On the attached spreadsheet I have an example of what I would like to occur..

    I have two sheets
    1. View Only
    2. Data Entry

    I would like to update the data on the Data Entry Sheet (which is linked to update the cells on the "View Only" sheet) & have the Macro auto run to hide the columns as programs in the VBA.

    Cell C2 on the 'Data Entry' Sheet provides the data update to Cell A1 on the 'View Only' Sheet

    Cell C4 on the 'Data Entry' Sheet provides the data update to Cell A11 on the 'View Only' Sheet

    At the moment cells A1 & A11 update with their actual value however the Macro does not activate to cause the rows to become hidden...

    Is it possible to cause a Macro to Auto-Update/Refresh whenever the Cells A1 & A11 update info from their corresponding cells?

    Online Test.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: How do I cause my macro to 'auto-update' whenever linked cells are updated??

    why don't you just put this code in sheet 2 instead?

    Please Login or Register  to view this content.
    The cells in the first sheet don't change - they still have the same formula in them. The fact that what those return changes doesn't triger the change event.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: How do I cause my macro to 'auto-update' whenever linked cells are updated??

    Thanks... is that also possible to be done if the second sheet is on another file?

  4. #4
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: How do I cause my macro to 'auto-update' whenever linked cells are updated??

    Pretty sure yes - the needed code goes to the worksheet which will change. And you must make sure to point to the appropriate workbook+sheet to make the hide/unhide.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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