Consulting

Results 1 to 2 of 2

Thread: Private Function problem

  1. #1
    VBAX Regular
    Joined
    Aug 2006
    Posts
    82
    Location

    Private Function problem

    I have a user-defined function that is located within a workbook that starts with Private Function. For some reason, if the workbook is open and I try to run other macros, either in the same or another workbook, they always seem to jump into this function, causing everything to lock up until I hit the Esc key. What am I doing wrong or forgetting to do?

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Functions will recalculate on every change. Try setting Calculation the Manual, then resetting to Automatic at the end of your sub.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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