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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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