Solved

Parameters

Posted on 1998-11-19
2
153 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

762 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

20 Experts available now in Live!

Get 1:1 Help Now