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

Outlook Script:



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 9th 08, 03:07 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script:

Config SBS2k3 & Outlook 2k3

Hi all,

My script hang's for non comprehesible reason,

I've two contact folders profesional(3500 item) and private(1100 item)

in My Form I list all contact in a combo

When I do'it on private all is Ok , but when I do the same thing on
Professional it hang's every time on the 242st item

there's no Pb on this item, (I delete it but it still not working) here is a
part of my code

TKS FOR Help

================================================== ==================

Set FormPage = Item.GetInspector.ModifiedFormPages("ContactP")

Set Control = FormPage.Controls("TmpLst")

Set myFolder = Application.GetNamespace("MAPI").Folders..........

Set myItems = myFolder.Items

myItems.Sort "[CompanyName]", False

For Each myItems in myItems

nbr = nbr + 1

Ctct = nbr & vbtab& myitems.FullName

Control.addItem Ctct

next

================================================== =====
--
Knowlege grows when shared.

http://bensoft.miniville.fr/tra


 




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 2k3 Script: Pb Using ComboBox bbnimda Outlook and VBA 3 December 1st 06 04:54 PM
Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT news.microsoft.com Outlook and VBA 3 November 22nd 06 03:33 PM
Run A SCRIPT - Select Script EMPTY mitupan116 Outlook and VBA 1 November 2nd 06 09:36 PM
Rule 'run a script' not running my script [email protected] Outlook and VBA 3 May 30th 06 12:09 PM
"Run a script" rule triggers but script does not execute Trey Shaffer Outlook and VBA 7 April 7th 06 11:34 PM


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