DataObject in Access?

  • Thread starter Thread starter Bob Bridges
  • Start date Start date
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?
 
Back
Top