🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18711

Re: master page

#18711
From: roberto soto
Date: Sat, 22 Feb 2003 03:43
22 lines
1247 bytes
Hi,

Open your master document and after click the button.

I think this will help you:

Dim myInDesign As InDesign.Application

Private Sub Command1_Click()

Set myInDesign = CreateObject("InDesign.Application.2.0")
  Set myDocument = myInDesign.ActiveDocument

'Assuming that your like the last master in your document
  'for the new page
  Set myMaster = myDocument.MasterSpreads.Item(myDocument.MasterSpreads.Count)

Set myPage = myDocument.Pages.Add
  myPage.AppliedMaster = myMaster
End Sub

Roberto
Technical Details
Message-ID: <1de7f6e7.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de7f6e7.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f3cda70492266cee
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-21 20:08:03 PST
From: "roberto soto" <roberto1soto@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: master page
Message-ID: <1de7f6e7.0@WebX.la2eafNXanI>
Date: Fri, 21 Feb 2003 19:43:06 -0800
References: <1de7f6e7.-1@WebX.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit