Sub Vizitk()
' Recorded 21.05.2015
With ActiveDocument.MasterPage
.SetSize 3.622047, 2.047244
.Orientation = 1
.PrintExportBackground = True
.DesktopLayer.Editable = True
.DesktopLayer.Visible = True
.GridLayer.Visible = False
.Bleed = 0#
.Background = 0
End With
End Sub
Sub VizToCenter()
' Recorded 18.12.2015
Dim OrigSelection As ShapeRange
Set OrigSelection = ActiveSelectionRange
OrigSelection.AlignAndDistribute 3, 3, 2, 0, False, 2
Dim p1 As Page
Set p1 = ActiveDocument.InsertPages(1, False, ActivePage.Index)
Windows.FindWindow(ActiveDocument).ActiveView.ToFitAllObjects
End Sub
Sub VizPOZITIV()
' Recorded 21.01.2016
With ActiveDocument.MasterPage
.SetSize 3.622047, 2.047244
.Orientation = 1
.PrintExportBackground = True
.DesktopLayer.Editable = True
.DesktopLayer.Visible = True
.GridLayer.Visible = False
.Bleed = 0#
.Background = 0
End With
ActiveDocument.CreateShapeRangeFromArray(ActiveLayer.Shapes(1)).AlignAndDistribute 3, 3, 2, 0, False, 2
Dim p1 As Page
Set p1 = ActiveDocument.InsertPages(1, False, ActivePage.Index)
ActiveDocument.MasterPage.DesktopLayer.Shapes(1).AddToSelection
ActiveDocument.MasterPage.DesktopLayer.Shapes(1).AlignAndDistribute 3, 3, 2, 0, False, 2
End Sub