Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

Copy to clipboard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brotherescott@yahoo.com - 10 Feb 2005 15:35 GMT
I am trying to use the code from the help file for "PutInClipboard" and
I get a error. Do I not have something loaded? It seems to have a
problem with the "DataObject" after New.

Sub Current_Path()
   Set MyData = New DataObject
   MyData.SetText ActiveDocument.Path
   MyData.PutInClipboard
End Sub

The program is supposed to put the path of the active document into the
clipboard.

Word 2003 Win XP

Thanks
Scott
Klaus Linke - 11 Feb 2005 03:23 GMT
Hi Scott,

You need to add a reference to the Microsoft Forms Object Library.
If you add a user form to your project, that'll be done for you, and
the code should run.

Regards,
Klaus

> I am trying to use the code from the help file for "PutInClipboard"
> and I get a error. Do I not have something loaded? It seems to have
[quoted text clipped - 13 lines]
> Thanks
> Scott
brotherescott@yahoo.com - 15 Feb 2005 13:44 GMT
KEWL!!!
Works great.

Thanks
Scott
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.