11-21-2024
01:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-21-2024
01:40 AM
sorry..I think your code is fine.
I see why the borders are referenced. It is because my drawing template has sheet formats in it.
Those somehow keep the borders referenced.
I should get those deleted first. (But have to figure out why they are there in the first place.)
I added a piece of code in your code above (after line 33). now it is working.
I added:
'delete all sheet formats For Each oSFDef As SheetFormat In oDrawingDoc.SheetFormats oSFDef.Delete Next 'delete all unreferenced TitleBlockDefinitions