Why does the VBA IDE's Intellisense in Microsoft Word 2007 keep on changing the case of the name of a particular variable type?

不想你离开。 提交于 2019-12-05 05:22:30

Try putting a

Dim Cell as Cell

somewhere, then delete it and try again... I seem to recall that variable declarations take precedence in setting the casing, thus this should force the casing back to how it should be...

VB/VBA variable names are not case sensitive so cell and Cell are the same. I would suggest you name your variables something else - I personally use a letter in front: e.g.

Dim sString as String 's for string
Dim iInt as Integer 'i for integer
Dim oCell as Cell 'o for objects

Hope this helps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!