Article View: adobe.scripting.indesign
Article #16795Re: [VB] Can't delete guide
From: Olav Kvern
Date: Mon, 04 Aug 2003 19:04
Date: Mon, 04 Aug 2003 19:04
26 lines
1403 bytes
1403 bytes
Alex--
Interesting. I would have thought that the right way to refer to the guide with the label would be:
Set myGuide = myPage.Guides.Item("myGuide")
But that doesn't work. When you look at the Locals window while debugging, however, you'll see that your version returns a collection (which would be useful if more than one guide bore the same label). In this case, changing the reference to:
Set myGuide = myPage.Guides("myGuide").Item(1)
myGuide.Delete
Actually works. I'm not sure why guides are different from other page items in this way--have to look into it.
Thanks,
Ole
Technical Details
Message-ID:
<1dea2e1a.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2e1a.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,b99ff8d0ef25617f X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-04 12:08:07 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Can't delete guide Message-ID: <1dea2e1a.0@WebX.la2eafNXanI> Date: Mon, 4 Aug 2003 12:04:22 -0700 References: <1dea2e1a.-1@WebX.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit