While typing a new function name or other text in the Excel Visual Basic Macro, the editor is removing the spaces between words as you type (automatically, unexpectedly, auto removing, auto-correcting). For example, you may be attempting to type a new function name:
Public Function MyFunction()
but the editor will correct the text as "PublicFunctionMyFunction()"
Note: You have also likely installed Microsoft Visual Studio 2010 sometime previously. This product introduced a Load Test Report Add-in that is apparently causing this bug. This article is current as-of Office 2007, SP2. I suspect Office 2010 exhibits the same issue.
1. De-activate the Excel "Load Test Report Addin" (add-in) using these steps:
a. Click the Excel "orb" (File menu)
b. Click the bottom-right button, "Excel Options"
c. Click left-side "Add-Ins" menu
d. In bottom, center pull-down, Choose "Manage" "COM Add-ins". Click Go
2. Uncheck [ ] "Load Test Report Addin"
3. Press Alt-F11 to return to the Macro editor. The problem should be resolved.
Making this change is permanent (for this workstation) and the change sticks for the current worksheet and all new and existing sheets.
VB VBA Editor auto-delete auto-deletes auto delete spaces at the end of the line, spaces as typing, spaces while typing, removes spaces, collapses spaces