why is parts of my code changing form title case to lowercase

jellisjo

New Member
Joined
Feb 24, 2016
Messages
5
Hello, please help as I use Github to commit my code and work with others in developing VBA modules. It is annoying to see my code changing like this automatically. Is there something i can do to prevent this?

1613829161306.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Only reason I can think of for that happening would be the use of 'text' (lowercase) as a variable name.

Using keywords as variable names is a practice that should really be avoided.

Vba has a native 'Format' function which would eliminate the need for using the Text worksheet function, which, in turn (in this case) eliminate the problem that you are encountering.
 
Upvote 0
Jason, yes I noticed that you are correct, but in my case i don't have any variables named 'text'. Does this have anything to do with excel versions or 32 bit vs 64 bit versions? Because I do work on two different computers that have different versions.

I could use the 'Format' function but there are other cases that 'text' change as well. see pic
1613839720625.png
 
Upvote 0
Does this have anything to do with excel versions or 32 bit vs 64 bit versions?
Does it happen in the standard Excel vba editor? The issue that I already mentioned with a variable using a keyword as a name is the only reason that I know of for it happening there.

If it is happening in a third party editor or the github application / browser but not in the proper Excel code editor then that indicates a problem with their software, not with excel.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top