AnalysisOption.AnalysisMaxMemory
This property returns or sets maximum amount of memory (in megabytes) that each analysis can use.
| Syntax | Return Value |
|---|---|
| - | Integer |
SVB Example
Limit the amount of memory analyses can use:
Option Base 1
Option Explicit
Sub Main
Dim AnalysisOpt As AnalysisOption
'set the global analysis options to the variable AnalysisOpt
Set AnalysisOpt = Application.Option.Analysis
'set the maximum memory, in megabytes, that each analysis can
'use to 96 MB
analysisopt.AnalysisMaxMemory = 96
End Sub