Делаю примерно так:
Dim myInDesign As InDesign.Application
Dim myDocument As InDesign.Document
Dim myPage As InDesign.Page
Dim myTextFrame As InDesign.TextFrame
Dim myRectangle As InDesign.Rectangle
Dim myFillColor As InDesign.Color
Dim mySelection As InDesign.Section
Set myInDesign = CreateObject("InDesign.Application.CS")
Set myDocument = myInDesign.ActiveDocument
Set myFillColor = ???
Set myPage = myDocument.Pages.Item(1)
Set myRectangle = myDocument.Rectangles.Add
myRectangle.GeometricBounds = Array("20", "18", "197", "26")
Set myRectangle = myPage.Rectangles.Item(1)
myRectangle.FillColor=???
и ничего не выходит, чего вместо вопросиков написать, перерыл фсе форумы нигде примера не могу найти
Dim myInDesign As InDesign.Application
Dim myDocument As InDesign.Document
Dim myPage As InDesign.Page
Dim myTextFrame As InDesign.TextFrame
Dim myRectangle As InDesign.Rectangle
Dim myFillColor As InDesign.Color
Dim mySelection As InDesign.Section
Set myInDesign = CreateObject("InDesign.Application.CS")
Set myDocument = myInDesign.ActiveDocument
Set myFillColor = ???
Set myPage = myDocument.Pages.Item(1)
Set myRectangle = myDocument.Rectangles.Add
myRectangle.GeometricBounds = Array("20", "18", "197", "26")
Set myRectangle = myPage.Rectangles.Item(1)
myRectangle.FillColor=???
и ничего не выходит, чего вместо вопросиков написать, перерыл фсе форумы нигде примера не могу найти