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

Capturing cursor window



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 14th 07, 04:34 PM posted to microsoft.public.outlook.program_vba
Jon Rowlan
external usenet poster
 
Posts: 9
Default Capturing cursor window

I am writing a routine to allow a user to classify an email from a drop down
box that will be placed on the main menu of Outlook.

I want to disable the lookup unless the user has an item with a mail address
in it.

For example, for a calendar item I don't want the selection box to be
enabled.

Is it possible to

a) identify what sort of item the cursor is positioned on

b) enable/disable my control when a user clicks on an item that does not
have a mail address type content.

jON


Ads
  #2  
Old May 16th 07, 07:39 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Capturing cursor window



a) Maybe with a lot of Win32 API calls. That window class is called
SUPERGRID and I never saw a sample for that.

b) You can track the SelectionChange event and check which item types the
Selection collection contains (if any).

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Mon, 14 May 2007 15:34:56 +0100 schrieb Jon Rowlan:

I am writing a routine to allow a user to classify an email from a drop

down
box that will be placed on the main menu of Outlook.

I want to disable the lookup unless the user has an item with a mail

address
in it.

For example, for a calendar item I don't want the selection box to be
enabled.

Is it possible to

a) identify what sort of item the cursor is positioned on

b) enable/disable my control when a user clicks on an item that does not
have a mail address type content.

jON

  #3  
Old May 16th 07, 08:37 AM posted to microsoft.public.outlook.program_vba
Jon Rowlan
external usenet poster
 
Posts: 9
Default Capturing cursor window

Thanks Michael, I will take a look.

jON

"Michael Bauer [MVP - Outlook]" wrote in message
.. .


a) Maybe with a lot of Win32 API calls. That window class is called
SUPERGRID and I never saw a sample for that.

b) You can track the SelectionChange event and check which item types the
Selection collection contains (if any).

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:

http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Mon, 14 May 2007 15:34:56 +0100 schrieb Jon Rowlan:

I am writing a routine to allow a user to classify an email from a drop

down
box that will be placed on the main menu of Outlook.

I want to disable the lookup unless the user has an item with a mail

address
in it.

For example, for a calendar item I don't want the selection box to be
enabled.

Is it possible to

a) identify what sort of item the cursor is positioned on

b) enable/disable my control when a user clicks on an item that does not
have a mail address type content.

jON



 




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
Capturing responses to a form [email protected] Outlook - Using Forms 0 January 12th 07 09:02 AM
Cursor on new message window but no text appears when typed? TommieC Outlook - General Queries 0 March 15th 06 07:13 AM
capturing calendar/appointment event? Sydney Outlook and VBA 0 February 1st 06 06:45 AM
Capturing Message URL Avatar Outlook Express 7 January 30th 06 06:47 PM
capturing the currentuser... Martin Outlook and VBA 7 January 17th 06 11:56 AM


All times are GMT +1. The time now is 08:03 PM.


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.