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 / December 2004

Tip: Looking for answers? Try searching our database.

Maximum Doc Var's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alok - 04 Dec 2004 13:45 GMT
Hi
Could you please let me know
"THE MAXIMUM NO. OF DOCVARIABLE THAT A WORD2003 CAN STORE"

Thanks
Alok
Jay Freedman - 04 Dec 2004 16:35 GMT
>Hi
>Could you please let me know
>"THE MAXIMUM NO. OF DOCVARIABLE THAT A WORD2003 CAN STORE"
>
>Thanks
>Alok

Hi Alok,

The article at http://support.microsoft.com/?kbid=211489 lists the
published limitations for Word 2000 through 2003. It doesn't mention
doc variables.

If there is a specific maximum number, it's probably either 32768 or
65536 (the largest 15-bit or 16-bit integer, depending on whether the
MS programmers used a signed or unsigned integer for the index into
the Variables collection).

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Helmut Weber - 04 Dec 2004 22:25 GMT
Hi Jay,
hi Alok,

Dim i As Long
For i = 1 To 100000
  On Error GoTo errortrap
  ActiveDocument.Variables.Add Name:="v" & CStr(i)
Next
errortrap:
MsgBox i ' 32768

>If there is a specific maximum number, it's probably either 32768 or
>65536 (the largest 15-bit or 16-bit integer, depending on whether the
>MS programmers used a signed or unsigned integer for the index into
>the Variables collection).

Sufficient, anyway, I'd say.

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Jay Freedman - 05 Dec 2004 02:46 GMT
Thanks, Helmut. I suspect that's the limit for all Word collections
that have numeric indexes.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org

>Hi Jay,
>hi Alok,
[quoted text clipped - 19 lines]
>Word XP, Win 98
>http://word.mvps.org/
 
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.