Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
in an IDW I have some border definitions.
I try to access a borderdefinition sketch, but receive an error.
Because I get the names of the borderdefinitions in the IDW, the initialisation before must be ok.
This method cuses the error:
Call oBorderDef.Edit(oDrawingSketch)
Sub ChangeBorderDefinition()
'On Error GoTo Errorhandler
Dim oDrawingDoc As DrawingDocument
Dim oDrawingSketch As DrawingSketch
Dim oBorderDef As BorderDefinition
Set oDrawingDoc = ThisApplication.ActiveDocument
For Each oBorderDef In oDrawingDoc.BorderDefinitions
Debug.Print oBorderDef.Name
Call oBorderDef.Edit(oDrawingSketch)
Next oBorderDef
Exit Sub
Errorhandler:
Debug.Print Err.Description
Debug.Print Err.Number
End Sub
Any ideas what is going wrong?
Manfred
Solved! Go to Solution.