Re: limit to (Text) arg in TypeText() method?
- From: "Klaus Linke" <info@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 03:05:07 +0100
About 64kB characters (65536), I think. If you need to insert longer text,
..InsertAfter is better.
Regards,
Klaus
"Rick Charnes" <rickxyz--nospam.zyxcharnes@xxxxxxxxxxxxxxx> wrote:
Does anyone know what the limit is? I guess I could just try it myself,
increasing it until my system crashes!
In article <rj16u21t1pm3u8vnlsfkc7q91gu9japuvu@xxxxxxx>,
nbhymsjxdgcn@xxxxxxxxxxxxxx says...
Hi Rick,
I notice that when I record a new macro from Word (Tools | Macro |
Record New Macro) and the macro includes a lot of straight text typing,
the resultant code consists of many separate TypeText() statements, each
with its (Text) argument consisting of 60 or so characters. Why does
Word do it like that? That [Text] arg can be longer than 60 chars, yes?
What is the limit? Thanks much.
Why does Word do it like that?
who knows,
maybe 60 characters was a nice value to split lines.
That [Text] arg can be longer than 60 chars, yes?
indeed. Try:
Selection.TypeText Text:= ActiveDocument.Range.Text
until system crashes.
.
- Follow-Ups:
- Re: limit to (Text) arg in TypeText() method?
- From: Jezebel
- Re: limit to (Text) arg in TypeText() method?
- References:
- limit to (Text) arg in TypeText() method?
- From: Rick Charnes
- Re: limit to (Text) arg in TypeText() method?
- From: Helmut Weber
- Re: limit to (Text) arg in TypeText() method?
- From: Rick Charnes
- limit to (Text) arg in TypeText() method?
- Prev by Date: Re: "Find" an autonumber with a macro?
- Next by Date: Re: Word mail merge data source
- Previous by thread: Re: limit to (Text) arg in TypeText() method?
- Next by thread: Re: limit to (Text) arg in TypeText() method?
- Index(es):
Relevant Pages
|