Is there anyway to modify Ron De Bruin\'s code to export the current workbook to a password-protected zip file. I\'ve looked around for quite some time, and can\'t
I've found an accepted answer for this on another site using 7Zip......
strDestFileName = "c:\temp\TestZipFile.zip"
strSourceFileName = "c:\temp\test.pdf"
str7ZipPath = "C:\Program Files\7-Zip\7z.exe"
strPassword = "MyPassword"
strCommand = str7ZipPath & " -p" & strPassword & " a -tzip """ & strDestFileName & """ """ & strSourceFileName & """"
Shell strCommand