🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16124

Delete a specific layer via VBscript

#16124
From: SpeeD72
Date: Thu, 16 Oct 2003 17:34
16 lines
1105 bytes
Hi guys.

I need to Delete a specific layer of my indesign documet via VBscript.

does anyone knows how it�s done??

I�ve tried the followig but did�nt work:

Set myInDesign = CreateObject("InDesign.Application")
Set Doc=myInDesign.Open (dataFolder & "Prot Externo.indd")
Set myDocument = myInDesign.ActiveDocument
Set myLayer = Doc.Layers.ActiveLayer
Set myLayer = myLayer.Delete

Thanks a lot!
speeD72
Technical Details
Message-ID: <2ccde1e3.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,c14d1e50817bcdcc,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-16 10:37:52 PST
From: SpeeD72@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!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: Delete a specific layer via VBscript
Message-ID: <2ccde1e3.-1@webx.la2eafNXanI>
Date: Thu, 16 Oct 2003 10:34:27 -0700
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit