Is there a way to convince the VBA editor in Excel to stop auto-formatting lines to remove the space at the end when I pause in my typing for a quarter second?
To remove additional or extra spaces we use different VBA functions like LTRIM, TRIM, or RTRIM. We use LTRIM function to remove left most or starting of the string spaces. To remove right most or end of the string spaces we use RTRIM function.
You might notice that VBA is parsed into executable tokens at edit time, not at run time. Multiple inline spaces are compiled as a single n-space token, so they can be re-displayed for editing, but really they are just a single token in the compiled code. So it doesn't matter how many spaces you put between words.
I had this exact problem and the following worked for me.
This addin is installed with VS2010 Beta2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With