Range.SavedAsArray property (Excel)
True if all of the cells in the range would be saved to file as an array formula; False if none of the cells in the range would be saved to file as a legacy array formula; null otherwise. Read-only Variant.
Syntax
expression.SavedAsArray
expression A variable that represents a Range object.
Remarks
Dynamic array Excel may save formulas and their associated spilled cells to file as an array formula to ensure they will calculate correctly in Pre-Dynamic array versions of Excel. These cells will appear as Legacy Array formulas in Pre-dynamic array Excel.
Example
This example prompts the user to select a range on Sheet1. If every cell in the selected range contains a spill, the example displays a message.
Worksheets("Sheet1").Activate
Set rr = Application.InputBox( _
prompt:="Select a range on this worksheet", _
Type:=8)
If rr.SavedAsArray = True Then
MsgBox "Every cell in the selection is part of a spilled range"
End If
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for