expression.AllViews As View() object
where expression is a variable that represents a Frame Object
If you are developing a Microsoft Office macro, use a Variant type when enumerating through a set as shown in the GetAllViewsWithMicrosoftOffice sample shown below. Do not use a View type as an enumerator in a Microsoft Office macro.
If you are developing a macro in a Micro Focus product, you can use a Variant type or a View type for the enumerator.