Ok Deegeecees. Here goes. Using ACAD 2002, we have tons of existing drawings that use one of two title blocks. These title blocks contain an attribute used to indicate the year (at the time) & copyright. The tags for these would either be "copyright" or "copyrightyear". As each new year comes about, this attributes value needs updating when older drawings get modified. Example: "2005 C-n-R Corporation" nows needs to read "2006 C-n-R Corporation"
As you can imagine, we go through this every year. Problem is, at one time, a large portion of existing drawings had the titleblock attribute in question embedded (nested?) within another block. In recent drawings, embedding within blocks was corrected to just typical attributes. My macro as earlier posted, would allow next-to-automatic updating for this attribute (embedded or not). All I had to do was pick the button containing the macro then select each attribue requiring the change. We use multiple titleblocks within a single drawing and almost always use model space (very seldom layouts). I'm trying to avoid selecting each attribute requiring the change. I admit I'm lazy and looking for a simple means. I don't care if lisp, VBA, or diesel is used. I have toyed with lisp but get nowhere with this one. I'm not sure what I need to complete Uncoolperson's routine. I will experiment with your coding and see what happens.
Thanks alot