I'm not sure how it happened but when I was fixing spacing in the loop I added a few MoveRights and TypeParagraphs at the end of each loop and for some reason it fixed itself...??
Selection.Font stops working after first loop
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664220/image.png)
Here is the code I used, there is more in the loop after this, but this is the part thats not working. On the first loop it would produce something like this in word: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664225/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664225/image.png)
but then every loop after that the font size and color would be gone: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664230/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664230/image.png)
Any clue to why this might be happening?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!