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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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