+ Reply to Thread
Results 1 to 3 of 3

Not run Worksheet_Change if values change by macro in a module

  1. #1
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Not run Worksheet_Change if values change by macro in a module

    Hi everyone,

    I have "MyMacro" in a standard module that changes values in range B7:H100 of "Sheet1" and
    in "Sheet1" module I have a Sub Worksheet_Change event, that runs when values change in the same range B7:H100.

    What I want is that "Sub Worksheet_Change" event only runs when I enter manually data in B7:H100 and do nothing when
    "MyMacro" change the values in cells in B7:H100.

    How can I do this?

    Many thanks for any suggestion.

    Regards

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Not run Worksheet_Change if values change by macro in a module

    cgkmal,


    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Not run Worksheet_Change if values change by macro in a module

    Hi tigeravatar,

    Yeahhhh! Itīs logical But the problem is I never thought in that jajaja.

    It works exactly as I wanted.

    Many thanks for your help.

    Best regards

+ 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