VBA编辑器更改大写自动帮助。 [英] VBA editor changing capitalization automatically help.

查看:257
本文介绍了VBA编辑器更改大写自动帮助。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的代码编辑器正在做这个令人愤怒的事情,它需要一组大写的代码,然后从第一个字母中删除大写。 Columns发生了这种情况。例如:

So my code editor is doing this infuriating thing where it will take a capitalized set of code and then remove the capitalization from the first letter. This is happening to me with Columns. For example :

列("A:H")。排序键1:=范围("A2"),标题:= xlYes

Columns("A:H").Sort key1:=Range("A2"), Header:=xlYes

转入: 

列("A:H")。排序key1:=范围("A2"),标题:= xlYes

columns("A:H").Sort key1:=Range("A2"), Header:=xlYes

推荐答案

您可能已经声明了一个变量"columns"使用小写c - 即使您删除了声明,大写也将保留在您的项目中。如果您重新声明"列"然后删除声明,这将解决大写问题。 
至于代码不起作用,您可能仍然有"列"在某处声明为变量。
You may have declared a variable "columns" with the lower case c - even if you remove the declaration, the capitalization will persist in your project. If you redeclare "Columns" and then remove the declaration, that will fix the capitalization issue.  As for the code not working, you may still have "columns" declared as a variable somewhere.


这篇关于VBA编辑器更改大写自动帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆