SendKey - RuntimeError 70

G

George

HI

I use SendKeys "{HOME}" etc. in one part
of a program to mark a certain part of a text
in a text field (in a dialog!).

This works on hundreds of PC's. But now I
have a problem with one single station, on
which "SendKeys" produces runtime error 70,
"Access denied".

Windows Vista, Word 2003

On another station with (assumably) the same
configuration, this works without any problem.

Does somebody has an idea, what the reason
could be and how this could solved?


Best Regards and thanks for any help, George
 
C

Cindy M.

Hi George,
I use SendKeys "{HOME}" etc. in one part
of a program to mark a certain part of a text
in a text field (in a dialog!).
Why aren't you using SelStart, SelLength and HideSelection?
That will let you mark text in a text box?

SendKeys is really only a last resort...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
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

Top