Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jun 2002
    Location
    England
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Turning off XP auto-calc on open (2002 XP1)

    Is there any way to stop Excel 2002 automatically calculating all formulae when it opens files created in earlier versions? I know I can turn off automatic re-calculation, but I am only interested in this on opening. In general, i prefer auto-recalc on. More accurately, I am only interested in stopping Excel giving me a "save" dialogue when I close the file when, so far as I am concerned, I haven't made any changes.
    Cheers

    KeithC

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turning off XP auto-calc on open (2002 XP1)

    You could write a macro for this:
    <pre>Sub OpenAndForgetChanges()
    Dim vFilename As Variant
    Dim sPath As String
    Dim lcount As Long
    Dim oBook() As Workbook
    ReDim oBook(1)
    sPath = "c:windowstemp"
    ChDrive sPath
    ChDir sPath
    vFilename = Application.GetOpenFilename("Microsoft Excel Files (*.xls),*.xls", _
    , "Please select the file(s) to open", , True)
    If TypeName(vFilename) = "Boolean" Then Exit Sub
    For lcount = 1 To UBound(vFilename)
    If CStr(vFilename(lcount)) <> "" Then
    If Dir(CStr(vFilename(lcount))) <> "" Then
    ReDim Preserve oBook(lcount)
    Set oBook(lcount) = Workbooks.Open(vFilename(lcount))
    End If
    End If
    Next
    Application.Calculate
    For lcount = 1 To UBound(vFilename)
    If CStr(vFilename(lcount)) = "" Then Exit Sub
    If CStr(vFilename(lcount)) <> "" Then
    If Dir(CStr(vFilename(lcount))) <> "" Then
    oBook(lcount).Saved = True
    End If
    End If
    Next
    End Sub</pre>

    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    2 Star Lounger
    Join Date
    Jul 2002
    Location
    Paragould, Arkansas, USA
    Posts
    194
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turning off XP auto-calc on open (2002 XP1)

    Keith,
    Sounds like your files might have links to other files, or maybe time/date formulas related to "Now". These will cause the "Save?" dialog to pop up, even if you just took a quick look.

    You could make a Macro for your Personal.xls, with its own button that will close directly, without asking to save:

    Sub FastClose()
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True
    End Sub

    Link this to a button on the tool bar, and your worksheets will just disappear!

    Errol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •