我嘗試從Excel VBA中設置單詞表格的邊框。許多網站建議如下:從Excel VBA中設置單詞表格邊框
wrdTable.Borders(wdBorderTop).LineStyle = wdLineStyleSingle
但我得到一個錯誤(該集合的請求的成員不存在),而嘗試它。不過,我可以使用下面的代碼帶來的內邊框:
wrdTable.Borders(xlDiagonalUp).LineStyle = xlContinuous
同樣地,我嘗試:
wrdTable.Borders(xlEdgeTop).LineStyle = xlContinuous
帶來頂級的邊界,但我得到對角線。我如何在我的單詞表中應用邊界(內部和外部邊界)?我使用Office 2007的
如果在IDE中有良好的智能感知,這些小事情不會有太大的麻煩。任何關於所有對象和屬性列表的建議。 – chemicalkt
出於興趣,你的意思是wdColorDarkRed而不是wdDarkRed? –