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

Sub with optional parameters not working



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old January 3rd 07, 10:38 PM posted to microsoft.public.outlook.program_vba
Carol G
external usenet poster
 
Posts: 25
Default Sub with optional parameters not working

Thanks.
I hope you mean rename it as a function instead of a sub.
Carol
"Eric Legault [MVP - Outlook]" wrote in
message ...
That's it right there - you can't run a Procedure by itself with arguments

of
any kind (optional or not). It has to be called by something else.

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


"Carol G" wrote:

I can call this sub from another sub and it works with or without actual
arguments being sent.
but if I try to run or step through it by itself my computer just beeps

and
does not go into it at all. No error messages or anything.
I'm sure I'm just not understanding something about functions but I

can't
figure it out.
Thanks
Carol

Sub Envelope2(Optional objWord As Object, Optional itm As ContactItem)





 




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 should offer optional Exit confirmation dialog D Major Guy Outlook - Installation 4 May 23rd 07 11:56 PM
Optional object parameter Carol G Outlook and VBA 2 January 2nd 07 01:10 AM
Creating signatures but leaving them optional PeterJordan Outlook - General Queries 1 December 23rd 06 03:35 PM
how do i make the chedule an optional meeting? Sean Outlook - Using Contacts 1 August 3rd 06 02:46 AM
One or more parameters could not be found Tim Outlook and VBA 3 June 20th 06 05:32 AM


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