Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VBA editor auto-deletes spaces at the ends of lines

Tags:

editor

excel

vba

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?

like image 310
David Avatar asked Jul 22 '09 09:07

David


People also ask

How do I remove spaces at the end of a string in VBA?

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.

Do spaces matter in VBA?

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.


1 Answers

I had this exact problem and the following worked for me.

  1. Click the Microsoft Office Button, and then click Excel Options
  2. Click the Add-Ins category
  3. In the Manage box, click COM Add-ins, and then click Go.
  4. Look for an add in called 'Load Test Report AddIn' then uncheck it
  5. restart excel

This addin is installed with VS2010 Beta2

like image 186
ade Avatar answered Oct 29 '22 16:10

ade