MemoryTotal Property

Applies To

Application Object.

Description

Returns the total amount of memory that is available to Microsoft Excel, including memory already in use, in bytes. Read-only.

Remarks

MemoryTotal is equal to MemoryUsed + MemoryFree.

See Also

MemoryFree Property, MemoryUsed Property.

Example

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


MsgBox "Microsoft Excel has " & Application.MemoryTotal & _
    " total bytes available"