Solved

Parameters

Posted on 1998-11-19
2
155 Views
Last Modified: 2010-05-03
Hi. I want to know how to pass some parameters between functions and subs but not all that I write after the sub or function.
Example.
sub passArray(byref values as variant, method as integer)

Imagine that when I call this sub, I don't want to pass the method or the values. How to do ?
0
Comment
Question by:netkuk
2 Comments
 
LVL 3

Accepted Solution

by:
vmano earned 50 total points
ID: 1445725
decalre your sub like this:
sub passArray(optional values as variant,optional method as integer)
then you don't need to pass those values.
0
 

Author Comment

by:netkuk
ID: 1445726
Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB6 add a minute to the date time value 8 61
How to compare ms sql hashbytes results within vb6 5 54
Add and format columns in vb6 7 46
Advice in Xamarin 21 52
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now