+ Reply to Thread
Results 1 to 5 of 5

Save Active workbook, Add a password via a prompt and stop creating backups

Hybrid View

  1. #1
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Save Active workbook, Add a password via a prompt and stop creating backups

    I'm not sure which property lets you set that prompt, I'm sure there is one. You can turn off display alerts to go with the default value (which is yes) though:
    WbPassword = Inputbox("Please enter Password")
    application.displayalerts = false
    ActiveWorkbook.SaveAs Password:=WbPassword, CreateBackup:=False
    application.displayalerts = true
    ActiveWorkbook.Close

  2. #2
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Save Active workbook, Add a password via a prompt and stop creating backups

    Unfortunately the files don't save with the amended code... but this has saved heaps of time already - Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1