CurLine and CurX

E

Ed

Because the text is sometimes longer than certain textboxes written to hold
it, I frequently use VBA's CurLine and CurX to make sure that the user first
sees the top line and first character of the displayed text.

I first SetFocus to the object and then set the CurLine and CurX values to
0.

It works fine in all settings (on dozens of computers), on all platforms,
EXCEPT on one installation of Word2007. When that line of code is hit, the
program stops and returns the error: "Could not set the CurLine property.
Unexpected call to method or property access."

This particular installation has Adobe 9 Pro Extended installed. Our
suspicion is that it has something to do with that. But Adobe has locked
itself up and we cannot remove the influence of A9PE by simply unchecking it
as an Add-In (like we can do with every other add-in in the world). (This is
reminscent of the problems caused by a very early version of Adobe's
pdfmaker that messed up VBA programmers for a while.)

Has anyone seen this behavior? Is there a workaround of which you are aware?

--Ed (in Virginia)
 
J

Julian Ladbury

This has started happening on my usual work machine. I have tried to
reproduce it on a test machine without success. None of the machines are
running Adobe 9 Pro Extended.

The machine on which it happens is running Office 2007 SP1 under Vista Home
Premium with all automatic Microsoft Update maintenance.

The test machine is running XP SP2, and I have systematically applied Office
2007 vanilla, SP1, and subsequent fixes to them, attempting to recreate the
problem at each stage without success.
 

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