VBA editor auto-deletes spaces at the ends of lines

前端 未结 17 1418
不知归路
不知归路 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:30

    Something is causing your spreadsheet to recalculate while you are in the VBA Editor and this 'compiles' your code and thus strips the spaces. You need to stop the cells recalculating while you are editing. Turning the calculation to manual in the spreadsheet. Tools > Options > Calculation should do the trick.

    I noticed this when I had cells recalculating thanks to a DDE connection.

提交回复
热议问题