Consulting

Results 1 to 6 of 6

Thread: VBA to ZIP and password protect individual folder in the path.

  1. #1

    VBA to ZIP and password protect individual folder in the path.

    Hello,
    I have excel file with Folder name. I need help with VBA to ZIP it with password specified against each folder name.

    Example

    Folder Name Password
    Folder A 123
    folder b 456
    folder C 789

    Please advise.

  2. #2
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Hi,

    This is using .7Z. I have winrar. As well my requirement is to ZIP each folder of the path with password of each which is different then one other

  4. #4
    I am pretty certain that WinRar is not VBA capable,
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  5. #5
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Use the command line option -p to add a password. Use Shell() in VBA to execute your command line. Figure out what your command line should be by Win+R or Win > cmd > Enter.

    It is unclear if the folders are to be contained in one zip or rar file or each separate.

  6. #6
    separate folder. Lets say my path has 10 folder, then 10 zip.

Posting Permissions

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