The counter ought to place the properties in the Document if it is a Document and not a Method. If anyone can contribute code which will take 'md' and return x, where x is either the Document or the Folder containing a Method, I would appreciate it. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School