You must compress the photos if you work with photographs in Excel. Otherwise, the Excel file size will rise. Here, you need to pay attention to the fact that while compressing, the image quality needs to be good. You must then compress those photos using the Excel built-in command after first reducing their size outside of Excel. In this article, we will show you how to reduce Excel file size with pictures.
As more data, formulas, and graphics are added to an Excel workbook, it has been known to become uncomfortably slow and weighty. Sometimes it’s simple to trim the fat and keep the size of the Excel file under control, and other times it isn’t. The majority of us work and collaborate via emailing Excel files because Excel is not a web-based product. We will demonstrate to you how to reduce Excel file size with pictures by utilizing the Format Picture tool and applying VBA code in the following two methods.
1. Using Picture Format Tool to Reduce Excel File Size with Pictures
In this first method, you will learn how to reduce Excel file size with pictures by utilizing the Review tab.
- Go to the Insert tab.
- Select the Illustrations command.
- Click on the Pictures option.
- Finally, you can insert pictures using the Insert Picture From option.
- Now, navigate to the File tab.
- Here, click on the Save option first.
- Then, select the Info option and you will see the actual file size of 124 KB.
- In this step, click on the inserted picture first.
- Then, open the Picture Format tool.
- Besides, choose the Adjust command.
- The Compress Pictures windows will open.
- From the compression, choose the Delete cropped areas of pictures option.
- Click on the E-mail (96 ppi): minimize document size for sharing.
- Finally, click on OK and save the workbook as well.
- Now, Save the workbook first.
- Then, select the Info option.
- Finally, this is the outcome of the reduced Excel file size of 53.8 KB with the pictures.
Read More: Compress Excel File for Email
2. Applying VBA Code to Reduce Excel File Size with Pictures
In this final session, we will create a VBA to reduce the Excel file size with pictures using the Developer tab.
- We will use the Developer tab.
- Then, we will select the Visual Basic command.
- Here, the Visual Basic window will open.
- From the Insert option, we will choose the new Module to write a VBA code.
- Now, paste the following VBA code into the Module.
- To run the program, click the Run button or press F5.
Sub Reduced_Picture_Size() 'Declaring variables Dim Mysheet As Worksheet ' Setting worksheet as VBA Code Set Mysheet = Worksheets("VBA Code") Mysheet.Activate Mysheet.Shapes(1).Select ' Compressed picture using commnad SendKeys "%e", True SendKeys "~", True Application.CommandBars.ExecuteMso "PicturesCompress" End Sub
VBA Code Breakdown
- We call our Sub Procedure as Reduced_Picture_Size().
- We declare our variables as Dim Mysheet as Worksheet.
- We set our worksheet name as VBA Code using Set Mysheet= Worksheets(“VBA Code”).
- We will reduce our Excel file size with pictures as an Application.CommandBars.ExecuteMso “PicturesCompress”.
- This is the final result of the compressed Excel file containing the images.
Read More: How to Reduce Excel File Size with Macro
Download Practice Workbook
You may download the following Excel workbook for better understanding and practice it by yourself.
In this article, I’ve covered 2 handy methods to reduce Excel file size with pictures. I sincerely hope you enjoyed and learned a lot from this article. Additionally, if you want to read more articles on Excel, you may visit our website. If you have any questions, comments, or recommendations, kindly leave them in the comment section below.
- How to Zip an Excel File
- How to Compress Excel File to Smaller Size
- How to Compress Excel File More than 100MB
- How to Reduce Excel File Size by Deleting Blank Rows
- How to Reduce Excel File Size Without Deleting Data
- How to Reduce Excel File Size Without Opening
- How to Reduce Excel File Size with Pivot Table
- Determine What Is Causing Large Excel File Size
- [Fixed!] Excel File Too Large for No Reason