|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Copy selected text and hook into right-click menusI am trying to write VBA code that, among other things, copies the text
currently selected by a user (whether in an E-Mail or a notes field of a task/appointment/contact/etc.). I want the code to be launchable via an entry on the right-click menu if possible. I can't seem to figure out how to get the currently-selected text. Nor can I figure out how to hook into the right-click menu. Thoughts? Hi Bruce,
for the first issue you could use the SafeInspector of Redemption (www.dimastr.com). The second one isn´t possible. -- Show quoteHide quoteViele Grüße Michael Bauer "Bruce Pleat" <Bruce Pl***@discussions.microsoft.com> wrote in message news:BEFA9640-A6CC-4AD6-9DA7-837FFCA1123E@microsoft.com... > I am trying to write VBA code that, among other things, copies the text > currently selected by a user (whether in an E-Mail or a notes field of a > task/appointment/contact/etc.). > > I want the code to be launchable via an entry on the right-click menu if > possible. > > I can't seem to figure out how to get the currently-selected text. > > Nor can I figure out how to hook into the right-click menu. > > Thoughts? Hmmm. I spent a few hours on it but I still can't find the
currently-selected text. Hate to ask for spoon-feeding but... Show quoteHide quote "Michael Bauer" wrote: > Hi Bruce, > > for the first issue you could use the SafeInspector of Redemption > (www.dimastr.com). The second one isn´t possible. > > -- > Viele Grüße > Michael Bauer > > > "Bruce Pleat" <Bruce Pl***@discussions.microsoft.com> wrote in message > news:BEFA9640-A6CC-4AD6-9DA7-837FFCA1123E@microsoft.com... > > I am trying to write VBA code that, among other things, copies the > text > > currently selected by a user (whether in an E-Mail or a notes field of > a > > task/appointment/contact/etc.). > > > > I want the code to be launchable via an entry on the right-click menu > if > > possible. > > > > I can't seem to figure out how to get the currently-selected text. > > > > Nor can I figure out how to hook into the right-click menu. > > > > Thoughts? > > SafeInspector.SelText
That property might only work if you are using WordMail. In general you cannot get the selected text in an email when the Outlook editor is being used. -- Show quoteHide quoteKen Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Bruce Pleat" <BrucePl***@discussions.microsoft.com> wrote in message news:AF55A553-7F65-4121-83C2-193DA85F3FBA@microsoft.com... > Hmmm. I spent a few hours on it but I still can't find the > currently-selected text. Hate to ask for spoon-feeding but...
Other interesting topics
Reading text from Email
unexpected behaviour: mailitem.save and attachment click event awareness in contacts form Unattended outlook issue Prevent attachments for being inserted into the body How to send meeting request from ASP .NET using VB Remove Personal folder in Folder list POP3/IMAP password encoding NewMail and NewMailEx do not fire until script run manually Case# 7181 - End user need to add extra items in drop down menu. |
|||||||||||||||||||||||