+ Reply to Thread
Results 1 to 4 of 4

Problem with Application.Calculation

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    40

    Unhappy Problem with Application.Calculation

    Not sure whats going on, been running a few test over my code, and out of the blue (after a few crashes).

    The Excel Macro doesnt work now. I am getting Run-time Error 1004, Method 'Calculation' of Object'-Application Failed.

    this happens right away under Private Sub Workbook_Open();

    and it seems that it errs for:

    Application.Calculation = xlCalculationManual

    or

    Application.Calculation = xlCalculationAutomatic


    Not sure what to do. I am under Excel 2013. and the Excel is an xlsm type.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem with Application.Calculation

    It would be easier to trouble shoot if you could redact any sensitive information and post your workbook as an example.

    To post a workbook, click 'Go Advanced' below and use the paperclip in the toolbar to navigate to your document.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problem with Application.Calculation

    I reckon it's a timing issue-you can't change calculation state unless there's an open workbook. put the code into a routine in a normal module and call it with application.ontime
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    40

    Re: Problem with Application.Calculation

    This is giving me headaches.... it errs on "Application.Calculation = xlCalculationManual", on Sub Workbook_Open.

    Private Sub Workbook_Open()


    ThisWorkbook.Activate

    Application.Calculation = xlCalculationManual
    Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    Application.Visible = False
    .
    .
    .
    .
    End Sub
    [/CODE]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Application.Calculation
    By Phill Palmer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2013, 08:33 AM
  2. Application.Calculation Manual & FOR NEXT loops
    By stockgoblin42 in forum Excel General
    Replies: 1
    Last Post: 07-02-2013, 09:25 PM
  3. [SOLVED] Application.Calculation Best Practice
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2012, 12:52 PM
  4. [SOLVED] Application.Calculation during Change Event
    By Pflugs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2006, 01:25 PM
  5. Application.Calculation = xlCalculationManual mystery
    By David in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2005, 05:05 AM

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