How you call this task. Is this a macro?
The task itself is not a macro. Someone might have created your template so
that it uses a macro to perform the task.
But, for example, there are facilities provided with Word to expand or
collapse parts of a document (look at the Outline View). Word does not use
macros to do these tasks, at least, not in any way that is obvious to us.
In Word, a "macro" usually means a piece of VBA code that you can use to
perform a task. Originally, the word "macro" in computing meant something
rather different, but these days it is typically used to mean
- a piece of code that executes when you click a button or keyboard
combination
- a piece of code written in a language such as VBA that is associated with
a specific application, or code written in a "scripting language" such as VB
Script, JavaScript, and so on (code written in standalone programming
languages such as C or Delphi is not usually described as "macro code")
There is quite a good English-language article describing what "macro" means
in computing at
http://en.wikipedia.org/wiki/Macro
Some of the versions of this article in other languages (e.g. the Spanish
language article) do not cover the original meaning of the term "macro", as
far as I can tell.
Peter Jamieson