ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Capitalization annoyance (https://www.excelbanter.com/excel-programming/397821-auto-capitalization-annoyance.html)

Tom Med

Auto Capitalization annoyance
 
I have a utility that exports VBA code and checks it into source
control. However VBA capitalization seems to automatically change
things. For example

Target.Value ' where target is a range

gets changed to

Target.value

this capitalization or the reverse behaves differently on different
computers. The effect of this is that lots of modules seem to be
changed when it is in fact VBA doing or undoing this capitalization.
Does anyone know what controls this?

Thanks
Tom


Dave Peterson

Auto Capitalization annoyance
 
Try this:

Insert this line anywhere in your code:
Dim Value
(hit enter)

Then delete that line.

And test it.

Tom Med wrote:

I have a utility that exports VBA code and checks it into source
control. However VBA capitalization seems to automatically change
things. For example

Target.Value ' where target is a range

gets changed to

Target.value

this capitalization or the reverse behaves differently on different
computers. The effect of this is that lots of modules seem to be
changed when it is in fact VBA doing or undoing this capitalization.
Does anyone know what controls this?

Thanks
Tom


--

Dave Peterson


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com