Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Document variables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AlanC - 09 May 2005 04:50 GMT
Is there a maximum size for a word document variable?  I tried doing some
testing and it looks like it fails if I try to make a string longer than
about 65000 characters.  If this is the case, is there a good way to link a
large amount of text to a field?  I hoped to have fields within a document
that have other text associated with them.
Any info is appreciated.
Jezebel - 09 May 2005 07:55 GMT
65280 is the maximum length.

> Is there a maximum size for a word document variable?  I tried doing some
> testing and it looks like it fails if I try to make a string longer than
[quoted text clipped - 3 lines]
> that have other text associated with them.
> Any info is appreciated.
Roger Whitehead - 13 Jun 2005 10:10 GMT
Try something like;

{IF {DOCVARIABLE myDocVar} = 1, "" ""}

Between the "" that represent TruePart, Do an Insert File, to a file
containing your long text string. Clearly, this will need to be in an
accessible location for all users.

Now you just need a VBA routine to set the value of myDocVar to 1

If you're doing this in a mail-merge, the IF field can be set to assess the
values of DataFields to arrive at it's return value.

Signature

HTH
Roger
Shaftesbury (UK)

> Is there a maximum size for a word document variable?  I tried doing some
> testing and it looks like it fails if I try to make a string longer than
[quoted text clipped - 3 lines]
> that have other text associated with them.
> Any info is appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.