![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#12
|
||||
|
||||
|
Quote:
Case 2 To 6: LineWidth = 8 does exactly the same thing as: Case wdLineWidth025pt, wdLineWidth050pt, wdLineWidth075pt: .LineWidth = wdLineWidth100pt Try: Code:
Sub FixTableBorders()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim Tbl As Table, Bdr As Border, Cll As Cell
With ActiveDocument
For Each Tbl In .Tables
For Each Cll In Tbl.Range.Cells
For Each Bdr In Cll.Borders
With Bdr
If .LineStyle = wdLineStyleSingle Then
Select Case .LineWidth
Case wdLineWidth025pt, wdLineWidth050pt, wdLineWidth075pt: .LineWidth = wdLineWidth100pt
End Select
End If
End With
Next
Next
Next
End With
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| helpme, if command, wdlinewidth |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cell border lineweights | bkcell | Excel | 0 | 08-20-2017 09:55 AM |
| Can I type over a cell with a border? | Juju37 | Excel | 0 | 01-20-2015 07:40 AM |
Need to remove a line that isn't a cell border
|
msbytes | Word | 4 | 08-15-2011 09:21 AM |
Cell border
|
markg2 | Excel | 10 | 04-12-2011 05:05 PM |
Table cell border
|
markg2 | Word Tables | 2 | 01-15-2010 05:22 PM |