Saving Problem

frets2011

New Member
Joined
Feb 26, 2011
Messages
29
Problem:

Question 1 - I have a spreadsheet that has a lot of formulas in it. So, the problem is when i try to save, it keeps telling me that i have a formula that exceeds the max of 8192 characters and that i need to save a a binary excel file.

Question 2 - How do i find the problem formula ?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Good question. How are you at VBA? I'd think that the easiest first approach is to run some VBA to find the long formulas. Something similar to:
Code:
Sub findlongformulas()
    For Each ws In ActiveWorkbook.Worksheets
        For Each c In ws.UsedRange
            If c.HasFormula Then
                lentest = Len(c.Formula)
                If lentest > 130 Then
                    MsgBox "Sheet: " & ws.Name & vbCrLf & "Cell: " & c.Address & " formula= " & vbCrLf & c.Formula
                End If
            End If
        Next
    Next
End Sub
... change the 130 to whatever length you want to test for. I'm not sure if your problem ones with come back with exactly what you expect, so maybe test for 250 first, and see how many hits you get. ( hold down Esc key until it starts to autorollover to clear the message multiple times and eventually break into the macro if you are stuck in the loop ).
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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