Place contect of clipboard into a form field

S

Siggi Bjarnason

Is it possible for me to place the content of the clipboard into a field on a
form using code behind that form. What I'm trying to accomplish is an
automatic paste into a field when the form gains focus.
 
A

Allen Browne

Try:
Me.[WhateverControlYouWantHere].SetFocus
RunCommand acCmdPaste

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 
S

Siggi Bjarnason

Thanks, that worked perfectly.

Allen Browne said:
Try:
Me.[WhateverControlYouWantHere].SetFocus
RunCommand acCmdPaste

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
Is it possible for me to place the content of the clipboard into a field
on a
form using code behind that form. What I'm trying to accomplish is an
automatic paste into a field when the form gains focus.
 
Top