At first I thought the line "Dim Var, vPos, oScale" was the problem because no variable type is selected, but then I remembered it would then fall back to the default of variant. So I decided to run the code.
The error that I get is the text: "Variable not defined" and the variable ExcludedComponents is selected. That error seems pretty clear to me
Now I do have the line "Option explicit" as a default on all of my macros (go to your VBA editor settings to turn it on), because not defining variables is just sloppy programming. This time it even causes weird errors. That's why I urge you do turn it on by default.
When I remove the line Option explicit, the macro runs and it does create a section view. It just halts at the stop line, but you can manually continue the macro after that.