Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default stop calculation on a sheet

Hi,
I have a huge Workbook with many sheets doing different reports using
Sumproduct, Match, array, Etc.
The problem is when we try to enter new data, the Workbook recal on each
entries and take a lot of time.

On the "data sheet" I need to keep the cal because I have a match to
retrieve the name of the user using his salesman number. I have also an array
in each row.

I tried adding on the "Reports sheet" the code below, however the worksheet
still do the calculation. Can you help Thanks

This is the code I use in the Code Report sheet.

Private Sub Worksheet_Calculation()
Worksheets.EnableCalculation = False
End Sub

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default stop calculation on a sheet

Have you tried

Application.Calculation = xlCalculationManual
and
Application.Calculation = xlCalculationAutomatic

HTH,
Barb Reinhardt

"Mouimet" wrote:

Hi,
I have a huge Workbook with many sheets doing different reports using
Sumproduct, Match, array, Etc.
The problem is when we try to enter new data, the Workbook recal on each
entries and take a lot of time.

On the "data sheet" I need to keep the cal because I have a match to
retrieve the name of the user using his salesman number. I have also an array
in each row.

I tried adding on the "Reports sheet" the code below, however the worksheet
still do the calculation. Can you help Thanks

This is the code I use in the Code Report sheet.

Private Sub Worksheet_Calculation()
Worksheets.EnableCalculation = False
End Sub

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default stop calculation on a sheet

Thanks Barb for the quick answer
Yes I just did.
I even close the file and open it again.
I do not know why it doesn't work
Here what I did

Private Sub Worksheet_Calculate()
Application.Calculation = XlCalculationManual
End Sub


"Barb Reinhardt" wrote:

Have you tried

Application.Calculation = xlCalculationManual
and
Application.Calculation = xlCalculationAutomatic

HTH,
Barb Reinhardt

"Mouimet" wrote:

Hi,
I have a huge Workbook with many sheets doing different reports using
Sumproduct, Match, array, Etc.
The problem is when we try to enter new data, the Workbook recal on each
entries and take a lot of time.

On the "data sheet" I need to keep the cal because I have a match to
retrieve the name of the user using his salesman number. I have also an array
in each row.

I tried adding on the "Reports sheet" the code below, however the worksheet
still do the calculation. Can you help Thanks

This is the code I use in the Code Report sheet.

Private Sub Worksheet_Calculation()
Worksheets.EnableCalculation = False
End Sub

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default stop calculation on a sheet

Option Explicit
Private Sub Workbook_Open()
Me.Worksheets("Reports").EnableCalculation = False
End Sub

I'd have a macro in a general module that would turn calculation back on:

Option Explicit
Sub TurnCalcBackOn()
Thisworkbook.Worksheets("Reports").EnableCalculati on = True
End Sub

So I could run this when I needed to.

Mouimet wrote:

Hi,
I have a huge Workbook with many sheets doing different reports using
Sumproduct, Match, array, Etc.
The problem is when we try to enter new data, the Workbook recal on each
entries and take a lot of time.

On the "data sheet" I need to keep the cal because I have a match to
retrieve the name of the user using his salesman number. I have also an array
in each row.

I tried adding on the "Reports sheet" the code below, however the worksheet
still do the calculation. Can you help Thanks

This is the code I use in the Code Report sheet.

Private Sub Worksheet_Calculation()
Worksheets.EnableCalculation = False
End Sub

Thanks


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop calculation on open? G Lykos Excel Programming 2 August 29th 07 05:18 AM
How to stop IRR calculation at a particular year... Mawaller Excel Discussion (Misc queries) 8 July 5th 07 04:54 AM
Stop a calculation in progress hmm Excel Discussion (Misc queries) 2 January 18th 07 01:20 PM
How to stop automatic calculation Arthur Excel Programming 1 May 6th 05 02:13 PM
stop calculation Claude Excel Programming 0 May 6th 04 03:18 PM


All times are GMT +1. The time now is 09:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"