Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i am getting intermittent out of memory errors in vba. it can happen when
hitting return in a module or running review source code from mztools. haven't seen any other conditions yet. i've attributed it to using a couple public variables. Public wb2 As Workbook Public wb3 As Workbook i open each workbook in one module and from that module i call another module to manipulate the data and then close the files and return to the calling module to finish up. after running the code is when i get the error. i tried this just to confirm it didn't happen: i dimmed the 2 workbooks in each module. i open the files in the first module and then use these lines to set the variable after i call the 2nd module. ActiveWindow.ActivatePrevious Set wb2 = ActiveWorkbook ActiveWindow.ActivatePrevious Set wb3 = ActiveWorkbook have never seen the error using this method. anyone know why the public variables would be causing me a problem? -- Gary |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
getting error out of memory | Excel Programming | |||
How to handle error 8007000e Memory Error | Excel Programming | |||
Out of Memory Error | Excel Programming | |||
Out of memory error | Excel Programming | |||
out of memory error | Excel Programming |