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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Procedure Arguments

Status
Not open for further replies.

ProjectExplorer

Programmer
Mar 22, 2002
95
GB
I read somewhere that when setting up a procedure, you can set a default value for the argument in the Procedure title - i.e. something along the lines of

Private Sub AProcedure(StrArgument As String....Defualt Value = "A Word")

Any one know how you add the default argument value?
 
You can only set default values for optional parameters.

Private Sub AProcedure(Optional StrArgument As String = "A Word")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top