+ Reply to Thread
Results 1 to 2 of 2

Application.Calculation = xlCalculationManual fails

  1. #1
    AM
    Guest

    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. #2
    AM
    Guest

    RE: 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 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