+ Reply to Thread
Results 1 to 7 of 7

empty cell after links are updated

  1. #1
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    empty cell after links are updated

    Hello,

    I have two workbooks that are linked to each other, Workbook W1 and Workbook W2. When some types something in Workbook W1, in cell A2, it then updates to Workbook W2, in cell A2. Then the people who have access to Workbook W2 will respond in cell B2 and that will update to Workbook W1 in cell B2. Basically it works like this W1,A2=W2,A2 and W2,B2=W1,B2.

    The problem I'm encountering is creating an event macro that will clear out W2,B2 if W1,A2 changes.

    I've tried workbook_change and workbook_calculate events and have had no luck.

    If anyone has any idea how I can fix fix this issue I would greatly appreciate some help.

    Thank you,

    -Justair

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: empty cell after links are updated

    I think you need this:
    Please Login or Register  to view this content.
    in the sheet object you want it to apply to, changing workbookname and sheetname as appropriate.

  3. #3
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: empty cell after links are updated

    Worked great!

    Is there a way to make this apply to all A2:A and B2:B so it will work for multiple cells? I need the code to apply to a lot of cells at once.

    Maybe your code can be modified to work with this?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: empty cell after links are updated

    You could either use:
    Please Login or Register  to view this content.
    or with the method you post:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: empty cell after links are updated

    I was incorrect in my original post. I just noticed that I actually need certain cells cleared on worksheet change. I tried the below code but it didn't work.

    For example. If F12 is changed then I need F22 cleared and so on....


    Please Login or Register  to view this content.
    Is there an easy way to accomplish this?

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: empty cell after links are updated

    I think you want:
    Please Login or Register  to view this content.
    but I'm not sure. That will work for cells F12 to F15 and clear cells F22 to F25

  7. #7
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: empty cell after links are updated

    Perfect! Thank you very much for your help! I actually learned a thing or two also.

+ 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. Replies: 14
    Last Post: 12-27-2014, 11:43 AM
  2. Links cannot be updated
    By jacob@thepenpoint in forum Excel General
    Replies: 1
    Last Post: 11-28-2011, 09:45 AM
  3. Updated Links dont remember they're updated
    By carsto in forum Excel General
    Replies: 0
    Last Post: 05-05-2009, 11:26 AM
  4. Links can not be updated...
    By JDP1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2007, 01:34 PM
  5. [SOLVED] links are not updated
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2006, 08:50 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