excel vba - Office VBA Editor not capitalizing some recognized terms -
i'm getting strange behavior office vba editor: terms no longer capitalize when recognized. in fact, can use autoselect choose term, capitalized until compiler validates line , editor changes lower case.
for example, today typed set wframework = application.activeworkbook using auto-select choose .activeworkbook, pressed [enter], compiler changed set wframework = application.activeworkbook. notice compiler capitalized application improperly removed capitalization .activeworkbook.
for number of objects / methods don't capitalize correctly small, seems growing.
i've tried things turning off code settings in hopes somehow reset things, non-starter. can't find anywhere controls function. wondered if handled through references, there doesn't seem anyway should editable, without doing on purpose. i'm wondering if somehow function of windows improperly tracking case management, again seems specific windows session, , symptom persists if have shut down computer , restarted.
does know might cause this, , whether possible reset?
tim williams said:
"sometime if have (eg) defined variable name application compiler gets "stuck" on case , doesn't correct later uses application, after renaming variable. if problem persists try exporting , re-importing code modules (see rob bovey's "code cleaner" tool easy way this: appspro.com/utilities/codecleaner.htm)"
this solved problem. question answered!
Comments
Post a Comment