Giter Site home page Giter Site logo

vba.compress's Introduction

VBA.Compress

Compression and decompression methods for VBA

Version 1.3.0

(c) Gustav Brock, Cactus Data ApS, CPH

Zip, Cabinet, and Archive Folders

Set of VBA functions to:

  • zip and unzip zip files and folders
  • compress and decompress cab (cabinet) files and folders
  • tar and untar archive folders

for both 32- and 64-bit. No third-party tools used, only a single code module.

The main goal for the functions is not to offer all sorts of fancy compression and expanding methods and options but, with code, to closely mimic what you manually can do with Windows Explorer.

However, while Windows Explorer's single option for compressing files or folders is to right-click and select Compress to zip file ..., included here are functions not only to create zip files, but also to create cab, tar, and tgz files.

A secondary goal is to make the call of the functions as simple and possible. As a result, any operation can be performed with a single line of code with only a few (all optional) arguments.

Zip Folders

Zip Folders

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc.

In VBA, you can also handle normal files and folders, but to zip folders take a little more - and that you'll find here.

Cabinet Folders

Cabinet Folders

Windows Explorer lets you open cabinet (cab) files like any other folder, though for reading only.

In VBA, you can easily handle normal files and folders, but opening and, indeed, creating cabinet files take a lot more - and that you'll find here.

Archive Folders

Tar Folders

Windows Explorer (of Windows 11 or later) lets you open archive folders (tar and tgz) files like any other folder, though for reading only.

In VBA, you can easily handle normal files and folders, but opening and, indeed, creating archive files take a little more - and that you'll find here, though Windows 10 or later is required.


Demos

Demos (to download) for Microsoft Access and Excel are located in the demos folder.

Documentation

Top level documentation generated by MZ-Tools is included for Microsoft Access and Excel.

Detailed documentation is included as in-line comments.

Full documentation can be found here:

EE Logo

Zip and unzip files and folders with VBA the Windows Explorer way

Handle cabinet files and folders with VBA the Windows Explorer way

Handle Archive Files and Folders With VBA the Windows Explorer Way


If you wish to support my work or need extended support or advice, feel free to:

Buy Me a Coffee


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.