There isnt enough memory to complete this task

methody

Well-known Member
Joined
Jun 17, 2002
Messages
857
Hi there I am having a major problem which has cropped up all of a sudden. (I use Office 365 - 64 bit. I am using a good Dell desktop which does not appear to be coming close to any memory limits)

I do use some quite large Excel files but was not having a problem. When now I try to open Excel (any file) I am getting a message "There isnt enough memory to complete this action"

I have uninstalled and reinstall office. I have even upgraded to Windows 11. I now basically cannot get access to Excel at all.

Any help appreciated

Alan
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Does your file contain macros ? If so, is there a macro in AutoOpen ? maybe it's doing some 'dirty' work.
 
Upvote 0
No. No macros. Now for every single Excel file when I go to open it I am getting that message.
 
Upvote 0
The following may help. DO NOT RUN THIS ON THE ORIGINAL FILE. Try on a COPY OF THE FILE FIRST.

VBA Code:
You can run this macro on your workbook and it will clear all the stray stuff from outside the data range on each sheet.

Select Code  copy to clipboard
Sub LipoSuction()
'JBeaucaire (8/3/2009)
Dim LR As Long, LC As Long
Dim ws As Worksheet

For Each ws In Worksheets
    LR = ws.Range("A" & ws.Rows.Count).End(xlUp).Row + 1
    LC = ws.Cells(1, ws.Columns.Count).End(xlToLeft).Column + 1

    'Clear everything below column A last cell and row 1 last cell
        ws.Range(ws.Cells(1, LC), ws.Cells(ws.Rows.Count, ws.Columns.Count)).Clear
        ws.Range(ws.Cells(LR, 1), ws.Cells(ws.Rows.Count, ws.Columns.Count)).Clear
Next ws

End Sub
 
Upvote 0
What happens if you open Excel in 'Safe Mode'?

Instruction on how to do that from Microsoft.

If opening Excel on its own seems to work fine, then try to open a workbook in safe mode. If the workbook opens fine then take the functionality for a test spin, see that it calculates as expect and so on. Let us know how this goes.
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

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