Results 1 to 3 of 3

Thread: macro to save as without dialog prompt
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jan 2013
    Location
    Vaslui
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default macro to save as without dialog prompt

    I have a VBA code to save as my file in other location but I need an improvement to save as my file without dialog prompt

    ActiveWorkbook.SaveAs Filename:="C:\Users\alex-cccp\Desktop" & ActiveWorkbook.Name, FileFormat:= _
    xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
    , CreateBackup:=False
    Application.DisplayAlerts = False

  2. #2
    Board Regular
    Join Date
    Jun 2011
    Posts
    1,414
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: macro to save as without dialog prompt

    Code:
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:="C:\Users\alex-cccp\Desktop" & ActiveWorkbook.Name, FileFormat:= _
    xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
    , CreateBackup:=False
    Application.DisplayAlerts = True
    Excel 2010, Windows 10

  3. #3
    Board Regular
    Join Date
    Jan 2013
    Location
    Vaslui
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: macro to save as without dialog prompt

    Thanks a lot !
    It is working perfect !!!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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