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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

vbScript Not Firing



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old September 29th 06, 11:58 PM posted to microsoft.public.outlook.program_forms
Boyd
external usenet poster
 
Posts: 21
Default vbScript Not Firing

Thanks Hollis .. I wasn't aware of the recipients collection object.
I'm guessing the vbScript fired, but network connectivity issues
prevented the form from sending when the user clicked the button.

I think the best way to tackle this issue is to resolve the address
field, and include error handling in case the address doesn't resolve.
This way, the user is aware of the issue, and can re-try sending the
form when connectivity issues subside.

Thanks again.
Boyd.


Hollis Paul [MVP - Outlook] wrote:
In article om, Boyd
wrote:
Item.To = "
Item.Send

Actually, you are lucky it works for anybody. When you set up
recipient email addresses in code, you are supposed to add a recipient
object to the recipients collection object, initialize its subfields,
and then resolve the address to be sure it will actually send. I had
expected to find a simple writeup of this at either www.slipstick.com
or www.outlookcode.com, but I have just spent some time at both and
cannot find anything through search. Bummer. Try looking up the
objects through the object browser help which you can reach using F2 in
the VBScript editor.

--
Hollis Paul
Mukilteo, WA USA


 




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 Reminder Events - not firing [email protected] Add-ins for Outlook 0 August 3rd 06 11:56 PM
AdvancedSearchComplete Even Not Firing Dav Banks Outlook and VBA 8 June 8th 06 10:18 PM
Inspector Close events not firing.. Sanjay Add-ins for Outlook 1 May 22nd 06 07:18 PM
MapiFolder Items ItemChange is not firing AtulSureka Outlook - Using Forms 1 February 6th 06 05:32 PM
Outlook Addin CommandBarButton Click Event Not Firing Stu Add-ins for Outlook 0 January 17th 06 03:10 AM


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