VBA Code to Convert XLSX/XLSM/XLS to XLSB

Hollando

Board Regular
Joined
Sep 13, 2012
Messages
55
Hello all,

I recently discovered the benefits to converting Excel documents to XLSB (binary), mostly the cutting almost in half of file sizes.

I would like to apply this to some of my older files, but don't want to sit around resaving these documents.

Does anyone have a code that will open all XLSX/XLSM/XLS and save a new copy as XLSB. I would like to retain the original file for the time being as a backup to see what type of if any corruption issues will occur. This will be done in one of three paths:

  1. Desktop
  2. Folder within Documents
  3. Shared Drive

I imagine the path will obviously need to be changed depending on the scenerio. I would like the XLSB version to be saved in the same area as the XLSX/XLSM/XLS document.

As always any direction on this would be great.

Thank you in advance!

Regards,

Hollando
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,762
Messages
6,174,354
Members
452,558
Latest member
jswan83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top