Populating the clipboard

D

Daniel

I took this from answer given by Stephen Lebans back in May

DoCmd.RunCommand acCmdCopy

Daniel
 
B

Brendan Reynolds

The code at the URL I posted can be used to retrieve text from the clipboard
as well as to copy text to the clipboard. For example, after copying and
pasting that code into a new module, I can copy the contents of a text box
to the clipboard and paste it back into another text box with the following
code ...

Private Sub Command4_Click()

ClipBoard_SetText Me.Text0
Me.Text2 = ClipBoard_GetText()

End Sub

I'm afraid I'm not sure of the answers to the questions about non-text
objects. The code at the URL I posted has a function to copy an object to
the clipboard, but as far as I can see does not have one to retrieve a
non-text object or to identify the format of the clipboard contents. You
could try this list of search results from the VBnet site. (Despite the
'net' in the name, this is not a VB.NET site, it is a 'classic' VB site, and
the code should be adaptable to work with Access).

http://vbnet.mvps.org/index.html
 
D

Douglas J. Steele

You need to declare MyString1 As String, MyString2 As String, etc.

However, the lstrcpy function only takes two arguments: you can't make that
change.
 
Top