1 Reply Latest reply on Apr 22, 2011 3:04 PM by John Galvin

    Documents.Add with using preset - [CS2 VBScript]

    John Galvin



      I want to create a document, using a preset document style. The line I'm using is:


          Set myDocument = myInDesign.documents.Add(myInDesign.DocumentPresets.Item("A3"))


      I've set up a matching document style and named it A3.


      I get the following error message:


      Error number:30477

      Error String:Invalid value for parameter 'ShowingWindow' of event 'Add'. Expected Boolean,

      but received DocumentPreset.


      Any idea what my problem is?