logo

CurLine and CurX

Ed posted on Wednesday, September 03, 2008 8:04 AM

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)

This has started happening on my usual work machine.

Julian Ladbur posted on Tuesday, October 21, 2008 6:09 AM

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.

Could not set the CurLine property

Dave M posted on Thursday, September 03, 2009 11:11 AM

You are required to be a member to post replies.  After logging in or becoming a member, you will be redirected back to this page.


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum





Pete's Resume  |  Robbe's Resume  |  Neado  |  Free Icons  |  Privacy  |   (c) 2010