I always use one and two letter prefixes in VBA. I am sure that I am the only one who admits this, but I decided that someone should be the opposite.
Of the 18 million lines of VBA code that I wrote, I worked about 1000. If no one sees my code, then I am free to use the convention that I like. If someone else will work on your code, you must agree on an agreement.
I like that it allows me to keep my variable names shorter. I could use FileNumber and FileName, or I could use lFile and sFile. I do not find it more or less readable than the other. It also helps me use reserved words as variables. If I want to use Replace as a variable name, I cannot. But I can use sReplace or lReplace.
Dick kusleika
source share