Re: limit to (Text) arg in TypeText() method?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.




.



Relevant Pages

  • Re: limit to (Text) arg in TypeText() method?
    ... Record New Macro) and the macro includes a lot of straight text typing, ... the resultant code consists of many separate TypeText() statements, ... with its argument consisting of 60 or so characters. ...
    (microsoft.public.word.vba.general)
  • Re: limit to (Text) arg in TypeText() method?
    ... Record New Macro) and the macro includes a lot of straight text typing, ... the resultant code consists of many separate TypeTextstatements, ... with its argument consisting of 60 or so characters. ... until system crashes. ...
    (microsoft.public.word.vba.general)
  • Re: limit to (Text) arg in TypeText() method?
    ... Record New Macro) and the macro includes a lot of straight text typing, ... the resultant code consists of many separate TypeTextstatements, ... with its argument consisting of 60 or so characters. ... until system crashes. ...
    (microsoft.public.word.vba.general)
  • Re: Word Document Shows Unreadable Text
    ... Graham Mayor - Word MVP ... flash drives and say it is not a problem, then all of a sudden they ... As the macro did not work, we can assume that the problem was not ... these Asian-type characters at the top. ...
    (microsoft.public.word.docmanagement)
  • Re: Word Document Shows Unreadable Text
    ... flash drives and say it is not a problem, then all of a sudden they ... come screaming to me for help when their most important file corrupts! ... As the macro did not work, we can assume that the problem was not ... these Asian-type characters at the top. ...
    (microsoft.public.word.docmanagement)