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 / January 2005

Tip: Looking for answers? Try searching our database.

Customize "Cut/Copy and Paste Special" commands

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John H - 11 Jan 2005 21:56 GMT
Hi, I need to customize the "Cut/Copy" command to keep
the Bookmark if the text has it, and then Paste Special
the text together with a new Bookmark into the Word
document. Any idea on whether I can do it and how.

thanks a lot

John H
Jezebel - 11 Jan 2005 22:21 GMT
Not easy. You can trap the EditCut and EditCopy commands to check if the
selection being cut or copied contains a bookmark (what do you do if it
contains several?); and you could trap the EditPaste command to create or
redefine a bookmark in the pasted text, if you knew that one was required.

But trying to track the bookmark information between the cut/copy event and
the paste event would be tricky to say the least. Bookmarks are not part of
the text that is cut or copied, and the clipboard itself is not part of
Word, so you'd have to store the bookmark details separately. Any number of
situations that would screw this up: copying the same bookmark multiple
times; target document already has a bookmark with the name used, etc.

Don't go there.

> Hi, I need to customize the "Cut/Copy" command to keep
> the Bookmark if the text has it, and then Paste Special
[quoted text clipped - 4 lines]
>
> John H
John H - 13 Jan 2005 21:18 GMT
Thanks for your suggestion! I will do a try-and-see.

John H
 
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.