Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 7th, 2003, 09:16 AM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default CalculateFull in Excel 2002

Hi,


We have a VBA formula that requires all formulas on all worksheets in a workbook to be recalculated.

We are having a problem with code that works in Excel 2000, but not Excel 2002 (XP).

The line
   Application.CalculateFull

returns error 1004: Method 'CalculateFull' of object '_Application' failed

I have not found anything in the KB or elsewhere that this is a known bug, but we cannot get anything to work.

Any ideas?

Thanks,
G72
 
Old August 9th, 2003, 03:43 PM
Authorized User
 
Join Date: Aug 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

G72,

Try the procedure below:

Public Sub Main()
    For i = 1 To Sheets.Count
        Worksheets(i).Select
        Cells.Calculate
    Next
End Sub

For more info recommend www.vba-programmer.com

CarlR







Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 Sp1 & Excel Sp2 anup.bihani Excel VBA 0 November 23rd, 2006 04:48 AM
Excel 2002 Problem HelpMePlz Excel VBA 1 June 9th, 2006 03:50 AM
Excel 2000 vs Excel 2002 Macro Issue williadn Excel VBA 1 July 14th, 2005 09:09 AM
Excel in win 2000 to excel winxp (excel 2002) Max Excel VBA 3 August 28th, 2003 04:44 AM
navigating MS Excel 2002 DirtyRottenScoundrel XSLT 1 July 22nd, 2003 04:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.