🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18226

Re: VB error trapping

#18226
From: Olav Kvern
Date: Wed, 09 Apr 2003 15:54
9 lines
990 bytes
Phil--

The error comes up on the "Set myDocument..." line, so the "On Error..." line needs to come before that line to trap the error.

Another approach would be to check the count of the Documents collection first--if myInDesign.Documents.Count = 0, then display your error message.

Thanks,

Ole
Technical Details
Message-ID: <1de8aa32.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8aa32.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,104efca9bdc36003
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-09 09:08:12 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: VB error trapping
Message-ID: <1de8aa32.0@WebX.la2eafNXanI>
Date: Wed, 9 Apr 2003 08:54:28 -0700
References: <1de8aa32.-1@WebX.la2eafNXanI>
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit