You are on page 1of 1

Sub Blatt_kopieren()

Dim oDrawingDocument1 As DrawingDocument

Dim oDrawingDocument2 As DrawingDocument

Dim oSheet As Sheet

Set oDrawingDocument1 = ThisApplication.ActiveDocument

Set oDrawingDocument2 = ThisApplication.Documents.Add(kDrawingDocumentObject, , False)

Set oSheet = oDrawingDocument1.ActiveSheet

oSheet.CopyTo oDrawingDocument2

Set oSheet = oDrawingDocument2.Sheets.Item(oDrawingDocument2.Sheets.Count)

oSheet.CopyTo oDrawingDocument1

oDrawingDocument2.Close True

End Sub

You might also like