Our Excel files are stored on SharePoint Online and they are very picture-heavy. Some files reach 300MB and we need a way to reduce the file size. If I run the Save As command I can get to the tools menu to compress images and bring a 300MB file down to 100MB, but how do I do this with VBA? I have tried running a loop and applying this compression but it takes hours. When I use the Save As tool, it takes only seconds.
I have also tried to record a macro of the Compress Pictures tool, but the macro is always blank.
Is there a quick VBA way to do this? I woud like to put this in a macro to trigger when the file is closed.
I have also tried to record a macro of the Compress Pictures tool, but the macro is always blank.
Is there a quick VBA way to do this? I woud like to put this in a macro to trigger when the file is closed.