Userforms and memory issues

fredrerik84

Active Member
Joined
Feb 26, 2017
Messages
383
Good morning. Ive been creating a couple of userforms and I notice that when I test all functions and changes I make I keep getting this error "out of memory" in my excel . I think the userforms are the issue.

Typically during testing , the userforms are loaded and unloaded a ton of times..

is this not correct command to clear them from memory:

Code:
Unload Me

or could something else be causing memory issues , maybe there is some way to check whats in use ?

hope anyone have some thoughts or ideas to help out a little ?

frederik
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
It will help if you can post your code. Maybe your variables are causing the issue.
Then the system you using: 32 /64

Note:
installed memory size is also a factor.
Rgards
 
Upvote 0
Hi thanks for your response

Maybe it could be the vars , but I dont have that many running only "dim as worksheet" and a few long vars
Its only when I do extensive testing of my code I get "Out of memory!" error

But I see that I dont set them as nothing when the userform is unloaded , maybe that could be the issue ?

Note:
installed memory size is also a factor.

I have a 64 bit system, with 32 gigs of ram.. so I don't think the problem could be in the hardware setup... But maybe it could be the 64 bit version of windows running ?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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