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

Restrict Method - Find only blank fields - VBA



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 4th 07, 08:25 PM posted to microsoft.public.outlook.program_vba
Irene
external usenet poster
 
Posts: 10
Default Restrict Method - Find only blank fields - VBA

Is there anyway to search only for blank fields using restrict method in VBA
Outlook.
Ex: Find all MailingAddressCountry field which are blank -

itms.Restrict ([MailingAddressCountry] = empty/blank)

Thanks
Ads
  #2  
Old June 5th 07, 05:25 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Restrict Method - Find only blank fields - VBA

Use double apostrophes:

Items.Restrict("[Subject] = ''")

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Irene" wrote:

Is there anyway to search only for blank fields using restrict method in VBA
Outlook.
Ex: Find all MailingAddressCountry field which are blank -

itms.Restrict ([MailingAddressCountry] = empty/blank)

Thanks

 




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
Outlook find Method Meex Outlook and VBA 4 May 4th 07 08:25 AM
Using Restrict method to select emails Jerry West Outlook and VBA 16 April 26th 07 06:48 PM
Find Method wild card search? [email protected] Outlook and VBA 5 May 3rd 06 03:26 PM
Restrict method problem Mike Epp Outlook and VBA 2 April 7th 06 08:03 PM
Restrict Method DNW emanson Outlook and VBA 14 March 28th 06 06:47 AM


All times are GMT +1. The time now is 10:10 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.