+ Reply to Thread
Results 1 to 2 of 2

stop excel from evaluating a formula while runing a code

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    stop excel from evaluating a formula while runing a code

    Hi all,

    I'm trying to run a code in a semi-complex workbook (with UDF's and other procedures) and am encountering a problem: when the execution of my code comes to a point where its changing a cell formula, the vba window jumps to an UDF and goes through it. Is there a way to stop that from hapening? I tried enableevents but had no luck.

    Thanks
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: stop excel from evaluating a formula while runing a code

    Set calculation mode to manual at the start

    Application.Calculation = xlCalculationManual


    and set back to automatic at the end

    Application.Calculation = xlCalculationAutomatic

+ 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