Consulting

Results 1 to 2 of 2

Thread: Cannot surpress compatibility or auto calculate message..HELP!!

  1. #1

    Cannot surpress compatibility or auto calculate message..HELP!!

    Hi All,

    I have the below code that works fine for my purpose, but I would also like to surpress any prompts after I save to .xls file format. Can anyone give me their thoughts on how to surpress the prompts for both compatibility and auto calculate?

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs "Calculation Workbook.xls", FileFormat:=56
    End Sub
    Last edited by psctornado; 08-22-2014 at 09:17 AM.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Not tried this, but did you try

    Application.DisplayAlerts = False
    before the save?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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