Article View: adobe.scripting.indesign
Article #16580Re: [VB] Selecting and making text bold.
From: B Holt
Date: Tue, 26 Aug 2003 20:57
Date: Tue, 26 Aug 2003 20:57
22 lines
1377 bytes
1377 bytes
actually, now i have a problem with it.
its running through a story that spans multiple text frames and across multiple pages.
I now get the error:
Method 'Search' of object 'Story' failed
when it reaches
Set myS = myStory.Search("<Bo>", , , vbNullChar)
however, i think the search/replace must be running once too much because it replaces all the <Bo>s in the story before the error pops up.
after the error, if i try and close the document i ran the code in, InDesign crashes with the message:
Runtime Error!
Program : C:\..
R6025
- pure virtual function call.
anyone know how to fix this?
Technical Details
Message-ID:
<1dea3eff.6@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<1dea3eff.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,cee1bfff47b97ef0 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-26 14:08:50 PST From: "B Holt" <holtwj@mcmaster.ca> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!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] Selecting and making text bold. Message-ID: <1dea3eff.6@webx.la2eafNXanI> Date: Tue, 26 Aug 2003 13:57:07 -0700 References: <1dea3eff.-1@webx.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit