Macrocommando ForSelected ... End

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters > Macro loop commands >

Macrocommando ForSelected ... End

Purpose:

Execute a piece of macro for selected objects of a specified type. The objects are available one by one in a variable.

 

The ForSelected command always occurs together with an End. Between ForSelected and End are the commands to be executed repeatedly. General notation:

ForSelected ( ExtendedObject, ObjectVariableName )

End