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
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
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" <glass_patrick@hotmail.com> wrote in message
news:%23%23jGZmh%23EHA.2572@tk2msftngp13.phx.gbl...
> 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
>
>
Paul B,
your additional code has help speed up my spreadsheet, many thanks.
Pat
"Paul B" <to_much_spam_to_list@nospam.com> wrote in message
news:%23uKfV9i%23EHA.3592@TK2MSFTNGP09.phx.gbl...
> 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" <glass_patrick@hotmail.com> wrote in message
> news:%23%23jGZmh%23EHA.2572@tk2msftngp13.phx.gbl...
>> 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
>>
>>
>
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks