단어 문서의 모든 표제의 모든 색상을 한꺼번에 변경하는 매크로를 작성하려고합니다.단어의 모든 표에있는 모든 테두리의 색상을 바꿉니다.
이 내 테이블 만 상단과 하단 경계 변경하고 나의 시도 :
Sub ChangeTableBordersColors()
Dim mycolor As WdColor
Dim myTable As Table
mycolor = wdColorRed
For Each myTable In ActiveDocument.Tables
With myTable
.Borders(wdBorderTop).Color = mycolor
.Borders(wdBorderBottom).Color = mycolor
.Borders(wdBorderHorizontal).Color = mycolor
.Borders(wdBorderVertical).Color = mycolor
.Borders(wdBorderLeft).Color = mycolor
.Borders(wdBorderRight).Color = mycolor
End With
Next
End Sub
사람이이 문제를 해결하는 방법을 제안 할 수 있습니까?
나는이를 복제 할 수 없습니다 - 코드 나를 위해 잘 작동합니다 : (! 약간 추하고 끔찍하게 느린 있지만)
다음 수정했다. – Comintern