![]() |
|
|
|
#1
|
|||
|
|||
|
Other than selecting text, your posted code isn't doing anything with the text in a table paragraph.
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oPar As Paragraph
Dim oRng As Range
Dim dblSize As Double
For Each oPar In ActiveDocument.Paragraphs
Set oRng = oPar.Range
With oRng
.MoveEnd wdCharacter, -1
While .Information(wdFirstCharacterLineNumber) <> .Characters.Last.Information(wdFirstCharacterLineNumber)
dblSize = .Font.Size
oRng.Font.Size = dblSize - 0.5
If .Information(wdFirstCharacterLineNumber) <> .Characters(Len(.Text)).Information(wdFirstCharacterLineNumber) Then
If oRng.Font.Spacing > -0.3 Then oRng.Font.Spacing = oRng.Font.Spacing - 0.05
If .Information(wdFirstCharacterLineNumber) <> .Characters(Len(.Text)).Information(wdFirstCharacterLineNumber) Then
If oRng.Font.Spacing > -0.3 Then oRng.Font.Spacing = oRng.Font.Spacing - 0.05
End If
End If
Wend
End With
Next oPar
lbl_Exit:
Exit Sub
End Sub
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
I want to add multiple rows into my document but I can not figure out the code
|
jlw15931 | Mail Merge | 1 | 02-24-2015 05:03 AM |
Header Rows in Tables Not Working
|
Andy Pilkington | Word | 2 | 10-10-2014 12:36 AM |
Is it possible to copy non-contiguous rows of a Table and paste them as a separate Table in Word?
|
Joey Cheung | Word Tables | 1 | 08-12-2014 05:15 PM |
VBA Code to take data from a table in word document and place it in a summary table
|
VBLearner | Word VBA | 1 | 03-09-2014 08:42 PM |
Grouping table rows to prevent individual rows from breaking across pages
|
dennist77 | Word | 1 | 10-29-2013 11:39 PM |