🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17375

TextContents basic question

#17375
From: Michael Krausse
Date: Sun, 15 Jun 2003 21:47
6 lines
1179 bytes
Hi,
I'm trying to set up a very basic script to transfer values from a spread sheet (excel 10)to a ID (2.0)document. Everything works fine with the line :
myTextFrame9.TextContents = myTransfer
 if 'myTransfer' is text. As soon as it is only a number, even though the spreadsheet cell is formatted to text, I get a Run_time error'-2147467459 (80004005)':Method 'TextContents' of Object 'TextFrame' failed. Can someone give me an easy solution: can the number be converted to text somehow?
Thanks
Michael
Technical Details
Message-ID: <1de98bd0.-1@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!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,4cd40ae6e60776fc,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-15 15:07:32 PST
From: "Michael Krausse" <northcliffeh@hotmail.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!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: TextContents basic question
Message-ID: <1de98bd0.-1@WebX.la2eafNXanI>
Date: Sun, 15 Jun 2003 14:47:55 -0700
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit