Fixing the letter case of code in the VBE
- John
- 2 days ago
- 1 min read
The VBE has a habit of changing the letter case of words (that are code ... not literal String values and/or comments) when you are typing in code. For example, I often find that the letter casing of the word Value gets changed to value. This typically happens when something is declared (a variable in a Dim statement, a procedure in Sub or Function statement ... or even just a parameter) with that casing.
VBE_Extras now includes a "Fix case" command that will allow you to specify the correct case for the word. Just put the cursor on any instance of the word with the case you want to change, run the "Fix case" command and enter the word using the desired casing. VBE_Extras will then correct the case for all matches of that word that are code (not where that word is used as a String literal value or a comment).

Note that the case of ALL instances of the word will be changed case throughout your Project … there is no way to avoid the VBE's behaviour of changing case throughout a Project for all instances of the same word.



Comments