Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optional argument for a module 1

Status
Not open for further replies.

MinnKota

Technical User
Nov 19, 2003
166
US
I am designing a function in a module that creates and instance of outlook to send an email. Sometimes I will want to send an attachment, but at other times I will not want to. How can I make the attachment argument optional.

i.e. Call sendemail(,,attachment,,,,)
 
Make it the last parameter to the function, and use the Optional keyword.

Or, pass an empty string ("") from the calling routine for that parameters and check for it inside the function.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top