+ Reply to Thread
Results 1 to 8 of 8

Worksheet_Change

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Worksheet_Change

    The following code runs the routine CommCalc. I would like CommCalc to run if another range in the same sheet changes. The other range name is "ActivityResult". Please advise how the code can be amended to include the range "ActivityResult".

    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by Aland2929; 03-06-2011 at 01:30 PM.

  2. #2
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Worksheet_Change

    I have entered the following code which seems to work but is there a better way to do it?

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 03-06-2011 at 01:04 PM. Reason: removed unnecessary quote

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Worksheet_Change

    Perhaps:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Worksheet_Change

    Thanks DonkeyOte, but I receive the following error message:
    "Object variable or With block variable not set"

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Worksheet_Change

    I omitted Is Nothing ... blame the error on the football I'm watching !

    edit:

    To be clear

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 03-06-2011 at 01:29 PM. Reason: edit: typo

  6. #6
    Registered User
    Join Date
    03-06-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Worksheet_Change

    Hello Friends,

    I Need your help... please help me... below is the request..
    Pivot table and it is filtered... Say in column A 1 to 50 and in column B 1 to 75 missing some numbers in in both columns... now I'm looking for a macro it should give me the matching numbers on in row and if not matching in A then in nothing in B..... in simple terms Apple to Apple match if both match else one or the other coumn is empty...

  7. #7
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Worksheet_Change

    Thank You. Works Perfectly. Enjoy the game.

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Worksheet_Change

    @Aland2929, no problem.

    @sreenivas501, welcome to the board, however, please note:

    Your post does not comply with Rule 2 of our Forum RULES.
    Don't post a question in the thread of another member -- start your own thread.

+ 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