Xem 36,135
Bạn đang xem bài viết How To Hide Table Styles On The Table Tools Design Tab In Word (For Developers) được cập nhật mới nhất ngày 17/05/2022 trên website Hoisinhvienqnam.edu.vn. Hy vọng những thông tin mà chúng tôi đã chia sẻ là hữu ích với bạn. Nếu nội dung hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất. Cho đến thời điểm hiện tại, bài viết này đã đạt được 36,135 lượt xem.
--- Bài mới hơn ---
The problem: does anyone need 99 ways to format a table?
The Design tab includes the Table Styles group. This gives you, out of the box, 99 table styles from which to choose.
Having applied one of the 99 styles, the user can then choose whether or not to show banded columns, banded rows, header or total rows and so on.
In a corporate environment, the communications people would tear their hair out if users formatted tables in 99 different ways. A corporate environment is likely to have 2 or 3 ‘approved’ ways to format a table.
The solution: hide most, if not all, of the built-in table styles
Well-constructed templates for corporate use are likely to have 2 or 3 custom table styles that fit the corporate branding. Or, the in-house rules may be that 2 or 3 of the built-in styles are to be used, but the rest are off limits.
There is no way in the user interface to hide the built-in table styles.
But you can do it in code. Something like this will do the trick:
Sub HideATableStyle() With ActiveDocument.Styles(Word.wdStyleTableLightShading) .Visibility = True ' Yes, True. .UnhideWhenUsed = False End With End Sub
If you’re creating a template for corporate use, it may be appropriate to hide most of the built-in table styles in the template. Leave the approved custom or built-in table styles visible. Users can then easily apply the corporate-approved table styles when working on documents based on that template.
Sub HideATableStyleButMakeItVisibleWhenUsed() With ActiveDocument.Styles(Word.wdStyleTableLightShading) .Visibility = True ' Yes, True. .UnhideWhenUsed = True End With End Sub
--- Bài cũ hơn ---
Cập nhật thông tin chi tiết về How To Hide Table Styles On The Table Tools Design Tab In Word (For Developers) trên website Hoisinhvienqnam.edu.vn. Hy vọng nội dung bài viết sẽ đáp ứng được nhu cầu của bạn, chúng tôi sẽ thường xuyên cập nhật mới nội dung để bạn nhận được thông tin nhanh chóng và chính xác nhất. Chúc bạn một ngày tốt lành!