Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SAVE AS ... (2000 sr-1)

    TEMPNAME = DRIVER & "STATISTICA" & "STAT_NEW_" & DATA_SALVA & ".xls"
    ActiveWorkbook.SaveAs TEMPNAME
    i use this piece of code to save a wbook...
    Why appear the dialog box"existis alredady a file named...ecc overwrite YES/NO...)
    is possible to save directly without confirm, because the last version of wbook is sure the newest...

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SAVE AS ... (2000 sr-1)

    Use this:

    ' Suppress warnings
    Application.DisplayAlerts = False
    ' Save workbook
    ActiveWorkbook.SaveAs TEMPNAME
    ' Show warnings again
    Application.DisplayAlerts = True

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SAVE AS ... (2000 sr-1)

    Tks...
    Nice!

Posting Permissions

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