DataObject in Access?

B

Bob Bridges

I'm trying to modify some already-existing VBA/Access code to put some text
in the clipboard. Now, in Excel I just create a DataObject and use its
built-in methods SetText and PutInClipboard; it's very simple. But when I
try that in Access, I can't seem to create the object. Is there something
obvious I'm missing? The appropriate object library is checked, and the VBA
editor is properly capitalized "dataobject", so apparently it can see it.
Yet I'm not allowed to "Dim cb As New DataObject" nor to "Set cb = New
DataObject"; it says I'm not allowed to use "New" in that context, though it
works fine in Excel. What secret words must I utter to get it to work?
Anyone know?
 

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