Argument List Of ActiveChart.Location And ActiveChart.ChartType

M

Mo

This is just a matter of personal style and idle curiousity. Why is
it that some functions need a parameter list like "Where:=" inside the
brackets and others you just specify the parameter like
"xlColumnClustered". I guess my question is what is the purpose of
the ":=" and is there a workaround so the parmeter list looks like
Function(arg1, arg2,...) instead of Function(Where:=arg1,
Location:=arg2,...)

Any help would be appreciated...Mo.
 
V

Vasant Nanavati

Hi Mo:

If you are using named arguments (the ones using :=), you only need to list
the ones that you want to specify, in any order whatever. If you are not
using named arguments, you need to provide all the arguments to the
function. This is generally correct although there are a few little quirks.

This post by Chip Pearson should clear it up for you.

http://google.com/[email protected]
 
T

Tom Ogilvy

You can use named argument or you can provide the arguments in an ordered,
comma separated list.

As far as I know, there is no function that requires one or the other - the
each will accept either.

by using a named list, you don't have to remember the order and you don't
have to supply optional arguments (or mark their position).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top