There isn't enough memory to complete this action
I have a little issue with excel. Everytime I open up a sheet I get this error:

after like 10-15 minutes. I have tried several things listed on the internet, here is a list on the things that I tried: Adding extra memory changing from 32bit to 64bit and reversed, adding virtual memory, Disabling and enabling DDE, changing office versions, also a few registery settings. Now I was wondering if its maybe the macro that I am using that switches between 2 sheets at an interval. At first I thought it was an issue if I pulled them off an share so I wrote a script that copies them over locally but the error still occurs.
Error handler
Dim RunTime1 As Date
Sub MacroSwitch()
Application.DisplayFullScreen = True
On Error GoTo Errhandler
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Exit Sub
Errhandler:
MsgBox "An error has occurred. The macro will end."
Application.DisplayFullScreen = False
End Sub
StartSwitchbutton
Sub MacroAutoRun1()
Application.DisplayFullScreen = True
RunTime1 = Now + TimeValue("00:01:00")
Application.OnTime RunTime1, "MacroAutoRun1"
If IsWbOpen("Monteursplanning.extern.xls") Then
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.intern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.extern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
Else
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.intern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
End If
End Sub
any thoughts?
microsoft-excel memory vba
|
show 12 more comments
I have a little issue with excel. Everytime I open up a sheet I get this error:

after like 10-15 minutes. I have tried several things listed on the internet, here is a list on the things that I tried: Adding extra memory changing from 32bit to 64bit and reversed, adding virtual memory, Disabling and enabling DDE, changing office versions, also a few registery settings. Now I was wondering if its maybe the macro that I am using that switches between 2 sheets at an interval. At first I thought it was an issue if I pulled them off an share so I wrote a script that copies them over locally but the error still occurs.
Error handler
Dim RunTime1 As Date
Sub MacroSwitch()
Application.DisplayFullScreen = True
On Error GoTo Errhandler
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Exit Sub
Errhandler:
MsgBox "An error has occurred. The macro will end."
Application.DisplayFullScreen = False
End Sub
StartSwitchbutton
Sub MacroAutoRun1()
Application.DisplayFullScreen = True
RunTime1 = Now + TimeValue("00:01:00")
Application.OnTime RunTime1, "MacroAutoRun1"
If IsWbOpen("Monteursplanning.extern.xls") Then
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.intern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.extern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
Else
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.intern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
End If
End Sub
any thoughts?
microsoft-excel memory vba
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08
|
show 12 more comments
I have a little issue with excel. Everytime I open up a sheet I get this error:

after like 10-15 minutes. I have tried several things listed on the internet, here is a list on the things that I tried: Adding extra memory changing from 32bit to 64bit and reversed, adding virtual memory, Disabling and enabling DDE, changing office versions, also a few registery settings. Now I was wondering if its maybe the macro that I am using that switches between 2 sheets at an interval. At first I thought it was an issue if I pulled them off an share so I wrote a script that copies them over locally but the error still occurs.
Error handler
Dim RunTime1 As Date
Sub MacroSwitch()
Application.DisplayFullScreen = True
On Error GoTo Errhandler
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Exit Sub
Errhandler:
MsgBox "An error has occurred. The macro will end."
Application.DisplayFullScreen = False
End Sub
StartSwitchbutton
Sub MacroAutoRun1()
Application.DisplayFullScreen = True
RunTime1 = Now + TimeValue("00:01:00")
Application.OnTime RunTime1, "MacroAutoRun1"
If IsWbOpen("Monteursplanning.extern.xls") Then
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.intern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.extern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
Else
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.intern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
End If
End Sub
any thoughts?
microsoft-excel memory vba
I have a little issue with excel. Everytime I open up a sheet I get this error:

after like 10-15 minutes. I have tried several things listed on the internet, here is a list on the things that I tried: Adding extra memory changing from 32bit to 64bit and reversed, adding virtual memory, Disabling and enabling DDE, changing office versions, also a few registery settings. Now I was wondering if its maybe the macro that I am using that switches between 2 sheets at an interval. At first I thought it was an issue if I pulled them off an share so I wrote a script that copies them over locally but the error still occurs.
Error handler
Dim RunTime1 As Date
Sub MacroSwitch()
Application.DisplayFullScreen = True
On Error GoTo Errhandler
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Exit Sub
Errhandler:
MsgBox "An error has occurred. The macro will end."
Application.DisplayFullScreen = False
End Sub
StartSwitchbutton
Sub MacroAutoRun1()
Application.DisplayFullScreen = True
RunTime1 = Now + TimeValue("00:01:00")
Application.OnTime RunTime1, "MacroAutoRun1"
If IsWbOpen("Monteursplanning.extern.xls") Then
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.intern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.extern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
Else
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
ThisWorkbook.Path & "Monteursplanning.extern.xls", ReadOnly:=True
ActiveWindow.WindowState = xlMaximized
Windows("Monteursplanning.intern.xls").Activate
ActiveWindow.Close
Application.ScreenUpdating = True
End If
End Sub
any thoughts?
microsoft-excel memory vba
microsoft-excel memory vba
edited Apr 5 '17 at 18:14
Stephen Rauch
2,27581725
2,27581725
asked Sep 14 '16 at 7:06
Dylan RzDylan Rz
634415
634415
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08
|
show 12 more comments
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08
|
show 12 more comments
1 Answer
1
active
oldest
votes
You could go for an AutoIt Script that periodically reopens the workbook or you could do it with a DataSource in your "Display" file and some code to switch between the sheets of that file.
- Setup a connection for the excel file using Data => Existing Connection/Connections => Other Elements (on the bottom) and selecting your Monteurplannung.intern.xls add the Data to your first sheet. Be sure to check the properties to setup an auto refresh and edit the definition to replace
Mode=Share Deny WritewithMode=Readto make sure the file(s) are opened as read only. - Setup a second connection for the other file and display that data on the second sheet. The options let you specify a refresh interval.
All based on the information in this help topic.
After that you'll have to setup an other macro to switch between those sheets. You can recycle part of your code for that.
Sub MacroAutoRun1()
RunTime1 = Now + TimeValue("00:00:01")
Application.OnTime RunTime1, "MacroAutoRun1"
If ActiveSheet.Name = "Tabelle1" Then
ThisWorkbook.Sheets("Tabelle2").Activate
Else
ThisWorkbook.Sheets("Tabelle1").Activate
End If
End Sub
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1124148%2fthere-isnt-enough-memory-to-complete-this-action%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You could go for an AutoIt Script that periodically reopens the workbook or you could do it with a DataSource in your "Display" file and some code to switch between the sheets of that file.
- Setup a connection for the excel file using Data => Existing Connection/Connections => Other Elements (on the bottom) and selecting your Monteurplannung.intern.xls add the Data to your first sheet. Be sure to check the properties to setup an auto refresh and edit the definition to replace
Mode=Share Deny WritewithMode=Readto make sure the file(s) are opened as read only. - Setup a second connection for the other file and display that data on the second sheet. The options let you specify a refresh interval.
All based on the information in this help topic.
After that you'll have to setup an other macro to switch between those sheets. You can recycle part of your code for that.
Sub MacroAutoRun1()
RunTime1 = Now + TimeValue("00:00:01")
Application.OnTime RunTime1, "MacroAutoRun1"
If ActiveSheet.Name = "Tabelle1" Then
ThisWorkbook.Sheets("Tabelle2").Activate
Else
ThisWorkbook.Sheets("Tabelle1").Activate
End If
End Sub
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
add a comment |
You could go for an AutoIt Script that periodically reopens the workbook or you could do it with a DataSource in your "Display" file and some code to switch between the sheets of that file.
- Setup a connection for the excel file using Data => Existing Connection/Connections => Other Elements (on the bottom) and selecting your Monteurplannung.intern.xls add the Data to your first sheet. Be sure to check the properties to setup an auto refresh and edit the definition to replace
Mode=Share Deny WritewithMode=Readto make sure the file(s) are opened as read only. - Setup a second connection for the other file and display that data on the second sheet. The options let you specify a refresh interval.
All based on the information in this help topic.
After that you'll have to setup an other macro to switch between those sheets. You can recycle part of your code for that.
Sub MacroAutoRun1()
RunTime1 = Now + TimeValue("00:00:01")
Application.OnTime RunTime1, "MacroAutoRun1"
If ActiveSheet.Name = "Tabelle1" Then
ThisWorkbook.Sheets("Tabelle2").Activate
Else
ThisWorkbook.Sheets("Tabelle1").Activate
End If
End Sub
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
add a comment |
You could go for an AutoIt Script that periodically reopens the workbook or you could do it with a DataSource in your "Display" file and some code to switch between the sheets of that file.
- Setup a connection for the excel file using Data => Existing Connection/Connections => Other Elements (on the bottom) and selecting your Monteurplannung.intern.xls add the Data to your first sheet. Be sure to check the properties to setup an auto refresh and edit the definition to replace
Mode=Share Deny WritewithMode=Readto make sure the file(s) are opened as read only. - Setup a second connection for the other file and display that data on the second sheet. The options let you specify a refresh interval.
All based on the information in this help topic.
After that you'll have to setup an other macro to switch between those sheets. You can recycle part of your code for that.
Sub MacroAutoRun1()
RunTime1 = Now + TimeValue("00:00:01")
Application.OnTime RunTime1, "MacroAutoRun1"
If ActiveSheet.Name = "Tabelle1" Then
ThisWorkbook.Sheets("Tabelle2").Activate
Else
ThisWorkbook.Sheets("Tabelle1").Activate
End If
End Sub
You could go for an AutoIt Script that periodically reopens the workbook or you could do it with a DataSource in your "Display" file and some code to switch between the sheets of that file.
- Setup a connection for the excel file using Data => Existing Connection/Connections => Other Elements (on the bottom) and selecting your Monteurplannung.intern.xls add the Data to your first sheet. Be sure to check the properties to setup an auto refresh and edit the definition to replace
Mode=Share Deny WritewithMode=Readto make sure the file(s) are opened as read only. - Setup a second connection for the other file and display that data on the second sheet. The options let you specify a refresh interval.
All based on the information in this help topic.
After that you'll have to setup an other macro to switch between those sheets. You can recycle part of your code for that.
Sub MacroAutoRun1()
RunTime1 = Now + TimeValue("00:00:01")
Application.OnTime RunTime1, "MacroAutoRun1"
If ActiveSheet.Name = "Tabelle1" Then
ThisWorkbook.Sheets("Tabelle2").Activate
Else
ThisWorkbook.Sheets("Tabelle1").Activate
End If
End Sub
answered Sep 16 '16 at 12:57
SethSeth
6,12811128
6,12811128
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
add a comment |
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
It works I think. There is a little issue however everytime it closes it pretty much force closes. The thing that happends is It gets the file recovery panel in the left everytime it shuts and opens. Anyway around this? Or disable the recovery panel? I tried disabling autosave but that didnt work.
– Dylan Rz
Sep 16 '16 at 13:19
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
Hm~ sorry, I'm not sure about that. :/
– Seth
Sep 17 '16 at 17:42
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1124148%2fthere-isnt-enough-memory-to-complete-this-action%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am sorry for the english, I used as much google translate as possible.
– Dylan Rz
Sep 14 '16 at 7:06
Did you use the Windows Task Manager to have a look at the memory consumption and maybe the number of excel processes?
– Seth
Sep 14 '16 at 7:49
@seth Yes I did with and without the error message, but the amount of ram usage and cpu usage remains the same. I monitored it for 15 minutes untill the error occurs but no sudden changes.
– Dylan Rz
Sep 14 '16 at 7:52
How much RAM does the machine have and how big are both works books that are opened every minute if I understand it correctly? Do those books run calculations on their own?
– Seth
Sep 14 '16 at 8:04
@seth The 2 sheets are no bigger than 300kb and from what I know, the sheets dont do any form of calculation. Its all static text.
– Dylan Rz
Sep 14 '16 at 8:08