Remove method (VBA Add-In Object Model)
Removes an item from a collection.
The Remove syntax has these parts:
|object||Required. An object expression that evaluates to an object in the Applies To list.|
|component||Required. For the LinkedWindows collection, an object.
For the References collection, a reference to a type library or a project.
For the VBComponents collection, an enumerated constant representing a class module, a form, or a standard module.
For the VBProjects collection, a standalone project.
When used on the LinkedWindows collection, the Remove method removes a window from the collection of currently linked windows. The removed window becomes a floating window that has its own linked window frame.
The Remove method can only be used on a standalone project. It generates a run-time error if you try to use it on a host project.
Objects, properties, and methods for controlling linked windows, linked window frames, and docked windows are included on the Macintosh for compatibility with code written in Windows. However, these language elements generate run-time errors when run on the Macintosh.
- Collections (Visual Basic Add-In Model)
- Visual Basic Add-in Model reference
- Visual Basic language reference
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.