VBA editor auto-deletes spaces at the ends of lines

前端 未结 17 1303
不知归路
不知归路 2020-11-30 05:11

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?

相关标签:
17条回答
  • 2020-11-30 05:48

    Turn off Tools > Options > General > Background Compile. This solved it for me.

    0 讨论(0)
  • 2020-11-30 05:48

    The removal of spaces in the VBA editor for Access occurs when a form is open in Form("Execute") mode. This is probably due to background executions based on "On Timer" methods. Close the form in Access solves the problem in VBA.

    0 讨论(0)
  • 2020-11-30 05:49

    I hit this problem today on a fresh install of Excel 2010 Beta 2. None of the above made any difference, but going into the trust center and disabling all application add-ins fixed the problem for me.

    0 讨论(0)
  • 2020-11-30 05:50

    In office 365 I had the same issue - what worked for me is I saved the file with a different name and when I re-opened the new file the problem went away.

    0 讨论(0)
  • 2020-11-30 05:51

    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

    0 讨论(0)
提交回复
热议问题