Command Not Available error when Marking index entry

S

stephen_enloe

I have a VB.NET application using Word 2003 VBA.
This works fine with most users but two users are recieving this error
when I am making the call to the VBA function:

m_ActiveDoc.Indexes.MarkEntry(r1, Entry, Entry)

(m_ActiveDoc is declared as Word.Document and is opened fine)

The document opens correctly, r1 is a valid word.range object and Entry
is a valid string. The funny thing is, it will work on the same machine
(All WinXP pro SP 2) when logged in as a different user. It doesn't
seem to be a user permission issue though.

Does anybody have ANY clue or ideas on things to look for? I believe
both users have installed Office using the same corporate IT
installation script so I expect their installs to be the same as
everyone elses.


I have sent them a new app.config file with tracing enabled so
hopefully I will recieve more info on the error shortly.

thanks for your help,

steve
 
S

senloe

Update...
It appears to only happen on files which we have custom templates and
macros attached and which are developed in WordML. Also, this only
happens when the macro security policy allows those macros to be
enabled and the option to show XML markup is true. (at least this is
the only way I've been able to repro this issue)

I've been able to get around this by setting the ShowXMLMarkup = False,
but then in order for those settings to take effect (as in not throw
the error), I must completely close out of the doc AND Word. It seems
to me that this is just a work-a-round and not a fix to the issue.
 

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

Top