Jay
Sun Aug 08 21:27:28 CDT 2004
peter.lingo@tiscali.de (Peter) wrote:
>
>one further quetions
>
>there is the method activedocument.variables.add
>but why is not the activedocument.variables.remove method available?
>
>thanks Peter
The folks who wrote the architecture of VBA decided that collections
don't have a .Remove method. Instead, the objects in the collection
have a .Delete method. Thus, you would call
ActiveDocument.Variables("myVar").Delete
to remove the variable named myVar.
Of course, nothing in MS software is completely logical, so there are
exceptions: the Controls, Pages, and Tabs collections do have a
.Remove method. <shrug>
--
Regards,
Jay Freedman
http://aspnet2.com/mvp.ashx?JayFreedman
Microsoft Word MVP FAQ:
http://word.mvps.org