Argument names in subs and functions

B

Bear

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
 
K

Karl E. Peterson

Bear said:
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.
 

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