A collection of VBA macros and functions to enhance productivity when using CorelDRAW.
- SaveAsLowerVersion function: Saves the active or specified CorelDRAW document as an earlier version format.
- SaveAllAsLowerVersion sub: Saves all CorelDRAW documents in an active document's folder as an earlier version format.
- SaveActiveDocAsLowerVersion sub: Saves the active CorelDRAW document as an earlier version format.
- DeleteBackupFiles sub: Deletes all backup files of CorelDRAW documents in an active document's folder.
- DeleteFileToRecycleBin function: Deletes a specified file and sends it to the recycle bin.
- FileExists function: Determines if a specified file exists.
- Copy the code for each module to the corresponding module in your CorelDRAW VBA project.
- Reference the Microsoft Scripting Runtime library in your project.
- Call the macros and functions as needed.
To use the SaveAsLowerVersion function, run the following code:
SaveAsLowerVersion "C:\path\to\your\document.cdr", cdrVersion14
To use the SaveAllAsLowerVersion sub, run the following code:
SaveAllAsLowerVersion
To use the DeleteFileToRecycleBin function, run the following code:
DeleteFileToRecycleBin "C:\path\to\your\file.ext"
Distributed under the MIT license. See LICENSE for more information