Share the Clipboard with VBA and the Windows API

Accessing the clipboard in Windows becomes quite tricky in VBA, particularly if you have to stay 32 and 64 bits compatible. Here’s my compilation of portable routines, inspired by MSDN, Internet scraping and good sense. First the Declares section (I know, it pours out of the frame on the right, just select and copy the… Continue reading Share the Clipboard with VBA and the Windows API

Microsoft Access Databases ADO connection strings for 32/64 bits

If you try to open a connection to an Access database via ADO, you’ll have to use a different provider, whether you’re coding for 32 or 64 bits environments. Here’s a utility function I use for that (updated 25.02.2014):

Of course you have to have the correct jet engine files installed on the target… Continue reading Microsoft Access Databases ADO connection strings for 32/64 bits

Compiling the zlib compression library with Visual Studio 2013

I you need zip compression in your development project, the zlib library is a good and free solution. There’s however a bit of googling necessary to achieve a successful compilation with VS2013, especially for generating the 32 bits version of the library. As I just needed it for some VB/VBA integration, I had to sort… Continue reading Compiling the zlib compression library with Visual Studio 2013