+ Reply to Thread
Results 1 to 3 of 3

Prevent calculation

  1. #1
    Pat
    Guest

    Prevent calculation

    When I run a lengthy piece of code the sheet immediately calculates even
    though a calculation (which takes quite a while) has not been included in
    the code. Is there a way to prevent this from happening?

    Pat



  2. #2
    Paul B
    Guest

    Re: Prevent calculation

    Pat, try this

    Application.Calculation = xlCalculationManual
    'your code here
    Application.Calculation = xlCalculationAutomatic


    --
    Paul B
    Always backup your data before trying something new
    Please post any response to the newsgroups so others can benefit from it
    Feedback on answers is always appreciated!
    Using Excel 2002 & 2003

    "Pat" <[email protected]> wrote in message
    news:%23%23jGZmh%[email protected]...
    > When I run a lengthy piece of code the sheet immediately calculates even
    > though a calculation (which takes quite a while) has not been included in
    > the code. Is there a way to prevent this from happening?
    >
    > Pat
    >
    >




  3. #3
    Pat
    Guest

    Re: Prevent calculation

    Paul B,
    your additional code has help speed up my spreadsheet, many thanks.
    Pat

    "Paul B" <[email protected]> wrote in message
    news:%23uKfV9i%[email protected]...
    > Pat, try this
    >
    > Application.Calculation = xlCalculationManual
    > 'your code here
    > Application.Calculation = xlCalculationAutomatic
    >
    >
    > --
    > Paul B
    > Always backup your data before trying something new
    > Please post any response to the newsgroups so others can benefit from it
    > Feedback on answers is always appreciated!
    > Using Excel 2002 & 2003
    >
    > "Pat" <[email protected]> wrote in message
    > news:%23%23jGZmh%[email protected]...
    >> When I run a lengthy piece of code the sheet immediately calculates even
    >> though a calculation (which takes quite a while) has not been included in
    >> the code. Is there a way to prevent this from happening?
    >>
    >> Pat
    >>
    >>

    >
    >




+ 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