LinkToListTemplate causes infinite waiting

  • Thread starter Alexis Kachtiane
  • Start date
A

Alexis Kachtiane

Hi,

Our environment: NT4.0 Word 97-SR2

I created a Word template containing an AutoOpen macro
that creates all the styles and list templates I need.

I get a strange error with the LinkToListTemplate
instruction on some of our PC's.
The instruction where it crashes is the following:
ActiveDocument.Styles
(strMPRStyleTextBullet1).LinkToListTemplate _
ListGalleries(wdBulletGallery).ListTemplates
(lngMPRTextBullet1ListTemplate)

- strMPRStyleTextBullet1 is an existing style (just
created)
- lngMPRTextBullet1ListTemplate = 1 (constant)

When the instruction is executed, it never ends, the CPU
usage rises to 100%, and the only way to stop the process
is to kill the application.

The strange thing is that the problem does not appear on
90% of our PC's ! It only happens on a few computers !

Does anybody have an idea about a solution ?

Thanks in advance !

Alex
 
J

JB

Hi,
do all the PC's have the same service packs and patches applied?
I take it the PC's will have a standard range of software applied and the
same versions of office?

J
 
C

Cindy M -WordMVP-

Hi Alexis,

I'd start with NOT trying to use any of the ListGallery
stuff. The contents of every users ListGallery is unlikely
to match, except on a newly installed computer. The
ListGallery is always a mixture of
- the preinstalled list types
- the lists in the current file
- the user's "favorites", stored in the Registry

There's simply no way to predict what's available, and
what's not.

Check out the articles and links on the word.mvps.org site.
You should find some articles on controlling numbering using
VBA that will get you going in the right direction.
Our environment: NT4.0 Word 97-SR2

I created a Word template containing an AutoOpen macro
that creates all the styles and list templates I need.

I get a strange error with the LinkToListTemplate
instruction on some of our PC's.
The instruction where it crashes is the following:
ActiveDocument.Styles
(strMPRStyleTextBullet1).LinkToListTemplate _
ListGalleries(wdBulletGallery).ListTemplates
(lngMPRTextBullet1ListTemplate)

- strMPRStyleTextBullet1 is an existing style (just
created)
- lngMPRTextBullet1ListTemplate = 1 (constant)

When the instruction is executed, it never ends, the CPU
usage rises to 100%, and the only way to stop the process
is to kill the application.

The strange thing is that the problem does not appear on
90% of our PC's ! It only happens on a few computers !

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top