MemoryUsed Property Example
This example displays a message box showing the number of bytes that Microsoft Excel is currently using.
MsgBox "Microsoft Excel is currently using " & _ Application.MemoryUsed & " bytes"