A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Selecting text question



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 21st 06, 06:51 PM posted to microsoft.public.vb.general.discussion,microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Mike
external usenet poster
 
Posts: 12
Default Selecting text question

Is it possible to select all the text wherever the curser may be
without actually knowing where the cursor is?

I need to write an Outlook add-in that does some processing based on
the contact field that the cursor is sitting on.

In other words the user places the curser into a contact field and
then clicks a toolbar button. I don't think the Outlook object model
gives me any idea which field has the cursor. Is there a way to trap a
click event in standard contact fields?

As a last resort I may have the user copy the text and I'll process
the clipboard, but having it a little more automated is desirable from
the user point of view.

Thanks
-mike
Ads
  #2  
Old May 21st 06, 08:02 PM posted to microsoft.public.vb.general.discussion,microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Selecting text question

If it's Word you can get the Document object and get the cursor position
using Word's object model. Inspector.WordEditor is the Document object.
Otherwise I believe your only real recourse would be to use methods from the
Redemption 3rd party library (www.dimastr.com/redemption).

--
Ken 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


"Mike" wrote in message
...
Is it possible to select all the text wherever the curser may be
without actually knowing where the cursor is?

I need to write an Outlook add-in that does some processing based on
the contact field that the cursor is sitting on.

In other words the user places the curser into a contact field and
then clicks a toolbar button. I don't think the Outlook object model
gives me any idea which field has the cursor. Is there a way to trap a
click event in standard contact fields?

As a last resort I may have the user copy the text and I'll process
the clipboard, but having it a little more automated is desirable from
the user point of view.

Thanks
-mike


  #3  
Old May 22nd 06, 02:54 AM posted to microsoft.public.vb.general.discussion,microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Mike
external usenet poster
 
Posts: 12
Default Selecting text question

It's a default Outlook contact form I have track the cursor position.
Any hints as to where in the Redemption docs I should start reading?

Thanks
-mike


"Ken Slovak - [MVP - Outlook]" wrote:

If it's Word you can get the Document object and get the cursor position
using Word's object model. Inspector.WordEditor is the Document object.
Otherwise I believe your only real recourse would be to use methods from the
Redemption 3rd party library (www.dimastr.com/redemption).

--
Ken 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


"Mike" wrote in message
.. .
Is it possible to select all the text wherever the curser may be
without actually knowing where the cursor is?

I need to write an Outlook add-in that does some processing based on
the contact field that the cursor is sitting on.

In other words the user places the curser into a contact field and
then clicks a toolbar button. I don't think the Outlook object model
gives me any idea which field has the cursor. Is there a way to trap a
click event in standard contact fields?

As a last resort I may have the user copy the text and I'll process
the clipboard, but having it a little more automated is desirable from
the user point of view.

Thanks
-mike

  #4  
Old May 22nd 06, 03:20 PM posted to microsoft.public.vb.general.discussion,microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Selecting text question

A couple of quickie snippets are in the section on SafeInspector, it's
basically just using the SafeInspector.SelText property, which works for any
Outlook email format.

--
Ken 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


"Mike" wrote in message
...
It's a default Outlook contact form I have track the cursor position.
Any hints as to where in the Redemption docs I should start reading?

Thanks
-mike


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting Multiple Folders kevmc2003 Outlook - Calandaring 1 May 10th 06 05:25 PM
Selecting from Contacts joelC Outlook - Using Contacts 4 April 24th 06 04:42 AM
Selecting account to send from treehstn Outlook - Installation 1 March 4th 06 07:28 PM
Screen resolution change in outlook 2003 text size question Andym Outlook - Installation 2 March 2nd 06 07:17 PM
Selecting several messages Valerie Outlook - General Queries 3 January 24th 06 08:15 PM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.