Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Problem with INDIRECT in event handlers

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    When I use the event procedure Worksheet_calculate in a worksheet containing INDIRECT funtions, the handler event activates WS_change instead of WS_calculate.

    Could you help me to solve this problem?
    thanks in advance.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    The Calculate event isn't the best method to use, because it can slow you down a lot. So, it's "kind" of a nice thing to use the Change event instead... why can't you use the Change, or in other words, why do you need to use the Calculate event ?
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks Juan Pablo,

    I use the event calculate to run a macro -related to graphics- every time I do a selection of a pivot table and this doesn't work with change event. Maybe you can give me an advice on a different method to run macros connected with pivot tables.
    On the other hand, I would prefer not to have the macro run in any change in the worksheet but only when it is really necessary, that is, when a new calculation is made.

    regards
    Francisco


Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •