How do I auto copy on "Got Focus"

A

Arend the Diver

whenever I "get Focus" on a certain field, I want the computer to automaticly
copy the text in that field onto the clipboard. Can I run a macro that will
call the key-strokes CTRL+S or is there a function in the VB that will do the
same thing?
 
J

John Nurick

Hi Arend,

Perhaps the simplest way is to use DoCmd.RunCommand acCopy,
which pastes the clipboard contents into the active control.

Another is to set a reference to the MS Forms 2.0 library and
use the DataObject object, which lets you move text to and from
the clipboard.

On Sun, 21 Nov 2004 08:49:01 -0800, Arend the Diver <Arend the
 
D

David Canfield

Hi John,

This sounds like exactly what I need, but....

How do I load the MS Forms 2.0 library, and set a reference?

Thanks,

David
 

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