+ Reply to Thread
Results 1 to 3 of 3

Workaround for recognizing reference cell changes in Change_Event

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Workaround for recognizing reference cell changes in Change_Event

    Hello,

    I have a workbook that utilizes a Worksheet_Change Event to erase relevant cells in the same row. However, it doesn't work since the cells that the Worksheet_Change Event runs on are actually reference cells to another workbook in another department.

    I created a macro to "click + enter" every single cell in column B so that the Worksheet_Change Event runs. This works perfectly fine but takes too much time to run for it to be useful (My actual workbook has hundreds of rows). However, if you take a look at the attached file, wouldn't it be possible to create a code that simply finds each cell with a value in column D, and then make it automatically "click + enter" the cell in column B? This seems like a viable solution since there will usually only be 1-5 rows that would need to be activated. This code could then also run on column E & F.

    Change Event that I need to run on reference cells in column B:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Current code I use to activate each cell in column B to make Worksheet_Change event run:
    Please Login or Register  to view this content.
    Many thanks for your input!
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Workaround for recognizing reference cell changes in Change_Event

    Couldn't you have the Change event in the worksheet that the values are actually being entered in?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Workaround for recognizing reference cell changes in Change_Event

    That definitely would be the ideal answer, but the way these actual workbooks (not my example book) are set up make this solution quite complicated. For example, how does that work if the worksheet that the values are being entered in are from another workbook? Also, based on the primary value being entered in, the value is referenced in 1-5 different workbooks which means that the code will need to look at all dependent workbooks every time it runs.

    From my novice perspective, it seems much more straightforward to have a code that simply "click + enters" the cell in column B on Workbook Open if there are values in columns D, E, or F.

+ 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] Workaround for a circular reference
    By bibu in forum Excel General
    Replies: 2
    Last Post: 04-09-2014, 02:19 PM
  2. How to Trigger the Change_Event without actually changing the value of a cell
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 09:08 AM
  3. Can you change the Target reference in Change_Event sub???
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2013, 05:16 AM
  4. Circular Reference Workaround
    By macky1730 in forum Excel General
    Replies: 1
    Last Post: 11-01-2010, 08:51 PM
  5. Circular reference issue. Looking for workaround.
    By krutec in forum Excel General
    Replies: 2
    Last Post: 12-11-2009, 03:20 PM

Tags for this Thread

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