Excel sheet to csv file showing large size

ajoy123rocks

New Member
Joined
Jul 13, 2022
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
The below sheet does not contain any data in the cells. The items shown in colours are all objects.

When saving as csv file, it shows about 6gb size and takes too long to save.

Link to file: DSS_Test.xlsm

1717029902012.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
In many sheets, UsedRange indicates an area covering a very large number of rows (almost all the rows of the sheet), even though the data occupies at most a few dozen rows. Hence the large file weight despite the small amount of data. I tried to remove the redundant rows only in the Game_Info sheet. However, UsedRange still indicates a huge area. The conclusion is that the sheet (and perhaps others) may be corrupted. When saving the file as a csv, Excel writes the data from the UsedRange cells to the file.

Artik
 
Upvote 0
What sheets are you trying to save as csv ? Is it the 2 scorecard sheets ?
In the workbook you provided both those sheets have row 72 as the first hidden row. If that is that can be relied on and is the same in your real workbook, then on a copy of your workbook run the code below and see if that fixes your issue.

VBA Code:
Sub ResetRowHeight()
    Dim sht As Worksheet
    
    With Application
        .EnableEvents = False
        .ScreenUpdating = False
    End With
    
    For Each sht In Worksheets
        With sht
            If Left(.Name, 10) = "Scoresheet" Then
                .Rows("72:1048576").RowHeight = 14.5
                .Rows("72:1048576").RowHeight = 0
            End If
        End With
        
    Next sht

    With Application
        .EnableEvents = True
        .ScreenUpdating = True
    End With
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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