8192 characters issue - Help please

gubertu

Board Regular
Joined
May 24, 2015
Messages
147
Hi all,

we have an Excel file that is used for some countries to report some data. They send me these files every month.

When I receive the file, I save it in my computer without any problem.

However, If I open the file after 1 hour (for example) and I try to make any change in the file, I get the following message:

"One or more formulas in this workbook are longer than the allowed limit of 8192 characters"

I have been reading about this message and It seem to be something complicated to detect where the error is and probably I won´t ever know.

But It is curious that I can save the file at first time and when I open it again I cannot.

Anyone had the same issue?

Thanks for help!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If you can run macro's when the book is open then the code below should pick out the offending cells.

Code:
Sub FindFormulas()
    Dim ws As Worksheet, myRng As Range, FndForm As Range
    
    For Each ws In ActiveWorkbook.Worksheets
        Set FndForm = Nothing
        On Error Resume Next
        Set FndForm = ws.Cells.SpecialCells(xlCellTypeFormulas)
        
        If FndForm Is Nothing Then
        Else
            For Each myRng In FndForm.Cells
                If Len(myRng.Formula) > 8000 Then
                    MsgBox ws.Name & " " & myRng.Address
                End If
            Next myRng
        End If
        On Error Goto 0
    Next ws
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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