MemoryFree Property

Microsoft Excel Visual Basic

Returns the amount of memory that's still available for Microsoft Excel to use, in bytes. Read-only Long.

Example

This example displays a message box showing the number of free bytes.

MsgBox "Microsoft Excel has " & _
    Application.MemoryFree & " bytes free"