When naming arguments for use in a sub or function, should I adhere to my
usual naming format? E.G.

Sub LOParas(ByRef rngWork As Range, strAction As String)

or is

Sub LOParas(ByRef Range As Range, Action As String)

okay?

Bear
--
Windows XP, Word 2000

Re: Argument names in subs and functions by Karl

Karl
Thu Oct 11 13:22:24 PDT 2007

Bear <david.chinell@ge.com(nospam)> wrote:
> When naming arguments for use in a sub or function, should I adhere to my
> usual naming format? E.G.
>
> Sub LOParas(ByRef rngWork As Range, strAction As String)

I think the ghoulash in arg names is ugly and redundant. Intellisense is there, to
tell you what type it is, so what's the point? Make it *functionally* meaningful,
and you'll be farther ahead.

> Sub LOParas(ByRef Range As Range, Action As String)

I wouldn't use keywords as argument/variable names.
--
.NET: It's About Trust!
http://vfred.mvps.org