简体   繁体   中英

How to turn off auto-capitalization in Excel VBA code editor

I've moved from Mac to Windows for some programming. And in my workbook I have a sheet named 'data'. But as I try to select this sheet using the code 'Sheets(data).Select', whenever I move my cursor of the word 'data' it will autocapitalize to 'Data'. It does this with all kinds of stuff and I simply cannot find a way to type the code with small letters.

I turned off all autocorrect options in Excel's options but without luck.

To control how variables appear in your code, you should declare them. For example:

Dim data As Object

If you don't declare them and you initial type them with a capital letter. The editor will remember this and use this format going forward. The only way I've found to overwrite this is to declare them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM