A VBA macro that processes a large dataset crashes with 'Out of Memory'. Which refactoring strategy is most likely to resolve the issue?
-
A
Increase Excel's undo history stack size
-
B
Break the dataset into smaller chunks, process each chunk, and release object references with Set obj = Nothing
-
C
Add more error handlers with On Error Resume Next
-
D
Replace all integer variables with Long data type