Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA - Out of Memory Compile Error

Status
Not open for further replies.

BGumm

MIS
Feb 26, 2008
12
0
0
US
I get this error message:

Code:
Compile error:

Out of memory

The code is incredibly simple, and I'm running with more than enough memory to support it (my indicators say I'm using less than 47% when this is being run):

Code:
Private Sub cmdConfirmExistingData_Click()
    Sheet9.Visible = xlSheetHidden
    Sheet10.Visible = xlSheetHidden
    Sheet11.Visible = xlSheetHidden
    Sheet12.Visible = xlSheetHidden
    frmNewDataConf.Hide
    frmDataEntry.Show
End Sub

Any ideas how to fix this? Thanks!
 
Nevermind. My frmDataEntry was too large, which is where the error was being encountered. I split it into two, so now everything is working fine.

Thanks!
 




Hi,

Glad you got it sorted out.

In the future, please post VBA questions in Forum707.

Skip,
[sub]
[glasses]Have you heard that the roundest knight at King Arthur's round table was...
Sir Cumference![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top