Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
AM AM is offline
external usenet poster
 
Posts: 41
Default Application.Calculation = xlCalculationManual fails

Hello,

I've got a VBA macro that does the following:

Application.Calculation = xlCalculationManual
If (Application.Calculation < xlCalculationManual) Then
MsgBox("Doesn't work!")
End If

The macro is triggered on a Worksheet_Change() event. Most of the tim time
it works, but in some cases it does not work. Does anyone know of any
situations when this property becomes read-only?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
AM AM is offline
external usenet poster
 
Posts: 41
Default Application.Calculation = xlCalculationManual fails

After doing some additional digging, it looks like the property becomes
read-only when you are pasting values into a worksheet (which triggers the
event, which triggers the macro). Why does this happen? Are there other
situations where this occurs?

"AM" wrote:
Hello,

I've got a VBA macro that does the following:

Application.Calculation = xlCalculationManual
If (Application.Calculation < xlCalculationManual) Then
MsgBox("Doesn't work!")
End If

The macro is triggered on a Worksheet_Change() event. Most of the tim time
it works, but in some cases it does not work. Does anyone know of any
situations when this property becomes read-only?

Thanks!

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
Application.Calculation = xlCalculationManual mystery David Excel Programming 2 July 13th 05 09:56 AM
How to set in XLA calculation on xlCalculationManual Billy[_5_] Excel Programming 6 September 20th 04 07:57 AM
Application.Calculation Gareth[_3_] Excel Programming 2 December 6th 03 01:53 PM
Application.Calculation=xlCalculationManual causing run time error? Dave Peterson[_3_] Excel Programming 3 October 18th 03 12:51 AM
Application.Calculation exception Bill Lunney Excel Programming 0 July 29th 03 04:46 PM


All times are GMT +1. The time now is 04:44 PM.

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"