Re: Macro for table problems



If you pasted directly from your browser into the Visual Basic Editor, it
would convert the "spaces" into "non-breaking spaces". These are different
characters: a non-breaking space is significant in VBA.

To fix that, paste the code into SimpleText, save as Text Only, re-open it,
and paste from there. Then, any line that turns red has been folded over.
Delete the line-ender at the end of the first red line until it joins the
line below it. That should fix it.

Let me do that bit for you: There's a little attachment on this post. Save
it to your hard drive. In the VBA Editor, go to the Insert menu, choose
"File" and select this file. It will import into the Visual Basic Editor
correctly for you.

And no, you are not dumb: but that's a fairly advanced piece of code. Not
recommended for your first venture into VBA :-)

Now, do what Clive says: it's a LOT easier :-)

Cheers

On 9/10/06 11:43 PM, in article
1160401438.567270.98440@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:

Hi John

Maybe I'm dumb, but I didn't understand what that progamming language
meant or why the macro does not work.

But if it doesn't work, then what is the best way to insert a specific
table format that I use repeatedly?

John

John McGhie [MVP - Word and Word Macintosh] wrote:
Hi John:

You do NOT want to do the macro! Here's why... (Yes, it works :-))

Sub Main()
'
' Insert or Format Table Macro
' Macro recorded 14/03/00 by John McGhie
'
' On Error GoTo Error

Dim astyle As Style
Dim aDoc As String
Dim aTemplate As String
Dim x As Integer
Dim TabBodyText As Style
Dim TabHeading As Style
Dim TabBullet As Style
Dim tabNumber As Style


aTemplate = ActiveDocument.AttachedTemplate.FullName
aDoc = ActiveDocument.FullName
For Each astyle In ActiveDocument.Styles
If UCase(astyle.NameLocal) = UCase("Table Body Text") Then Set
TabBodyText = astyle
If UCase(astyle.NameLocal) = UCase("Table Bullet") Then Set TabBullet =
astyle
If UCase(astyle.NameLocal) = UCase("Table Heading") Then Set TabHeading
= astyle
If UCase(astyle.NameLocal) = UCase("Table Number") Then Set tabNumber =
astyle
Next astyle

If TabBodyText Is Nothing Then
ActiveDocument.Styles.Add Name:="Table Body Text"
Set TabBodyText = ActiveDocument.Styles("Table Body Text")
With TabBodyText
.AutomaticallyUpdate = False
.BaseStyle = "Body Text"
.NextParagraphStyle = "Table Body Text"
End With
With TabBodyText.Font
.Name = BodyFont
.Size = 10
.Bold = False
.Italic = False
End With
With TabBodyText.ParagraphFormat
.LeftIndent = 0
.RightIndent = 0
.SpaceBefore = 2
.SpaceBeforeAuto = False
.SpaceAfter = 2
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpaceSingle
.Alignment = wdAlignParagraphLeft
.WidowControl = False
.KeepWithNext = False
.KeepTogether = True
.PageBreakBefore = False
.FirstLineIndent = 0
.OutlineLevel = wdOutlineLevelBodyText
End With
End If

If TabHeading Is Nothing Then
ActiveDocument.Styles.Add Name:="Table Heading"
Set TabHeading = ActiveDocument.Styles("Table Heading")
With TabHeading
.AutomaticallyUpdate = False
.BaseStyle = "Table Body Text"
.NextParagraphStyle = "Table Heading"
End With
With TabHeading.Font
.Name = HeadingFont
.Size = 10
.Bold = True
.Italic = False
End With
With TabHeading.ParagraphFormat
.LeftIndent = 0
.RightIndent = 0
.SpaceBefore = 2
.SpaceBeforeAuto = False
.SpaceAfter = 2
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpaceSingle
.Alignment = wdAlignParagraphLeft
.WidowControl = False
.KeepWithNext = True
.KeepTogether = True
.PageBreakBefore = False
.FirstLineIndent = 0
.OutlineLevel = wdOutlineLevelBodyText
End With
End If

If TabBullet Is Nothing Then
ActiveDocument.Styles.Add Name:="Table Bullet"
Set TabBullet = ActiveDocument.Styles("Table Bullet")
With TabBullet
.AutomaticallyUpdate = False
.BaseStyle = "Table Body Text"
.NextParagraphStyle = "Table Bullet"
End With
With TabBullet.Font
.Name = BodyFont
.Size = 10
.Bold = False
.Italic = False
End With
With TabBullet.ParagraphFormat
.LeftIndent = 22
.RightIndent = 0
.SpaceBefore = 0
.SpaceBeforeAuto = False
.SpaceAfter = 5
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpaceSingle
.Alignment = wdAlignParagraphLeft
.WidowControl = True
.KeepWithNext = False
.KeepTogether = False
.PageBreakBefore = False
.FirstLineIndent = -17
.OutlineLevel = wdOutlineLevelBodyText
End With
TabBullet.ParagraphFormat.TabStops.ClearAll
TabBullet.ParagraphFormat.TabStops.Add _
Position:=22, Alignment:=wdAlignTabLeft, Leader:= _
wdTabLeaderSpaces
With ListGalleries(wdBulletGallery).ListTemplates(7).ListLevels(1)
.NumberFormat = ChrW(61623)
.TrailingCharacter = wdTrailingTab
.NumberStyle = wdListNumberStyleBullet
.NumberPosition = 6
.Alignment = wdListLevelAlignLeft
.TextPosition = 22
.TabPosition = 22
.ResetOnHigher = 0
.StartAt = 1
.Font.Name = "Symbol"
.LinkedStyle = "Table Bullet"
End With
End If

If tabNumber Is Nothing Then
ActiveDocument.Styles.Add Name:="Table Number"
Set tabNumber = ActiveDocument.Styles("Table Number")

With tabNumber
.AutomaticallyUpdate = False
.BaseStyle = "Table Bullet"
.NextParagraphStyle = "Table Number"
End With
With tabNumber.Font
.Name = BodyFont
.Size = 10
.Bold = False
.Italic = False
End With
With tabNumber.ParagraphFormat
.LeftIndent = 22
.RightIndent = 0
.SpaceBefore = 0
.SpaceBeforeAuto = False
.SpaceAfter = 2
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpaceSingle
.Alignment = wdAlignParagraphLeft
.WidowControl = True
.KeepWithNext = False
.KeepTogether = False
.PageBreakBefore = False
.FirstLineIndent = -17
.OutlineLevel = wdOutlineLevelBodyText
End With
tabNumber.ParagraphFormat.TabStops.ClearAll
tabNumber.ParagraphFormat.TabStops.Add _
Position:=22, Alignment:=wdAlignTabLeft, Leader:= _
wdTabLeaderSpaces
With ListGalleries(wdNumberGallery).ListTemplates(7).ListLevels(1)
.NumberFormat = "%1."
.TrailingCharacter = wdTrailingTab
.NumberStyle = wdListNumberStyleArabic
.NumberPosition = 6
.Alignment = wdListLevelAlignLeft
.TextPosition = 22
.TabPosition = 22
.ResetOnHigher = 0
.StartAt = 1
.LinkedStyle = "Table Number"
End With
End If

If Not Selection.Information(wdWithInTable) Then
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=5,
NumColumns:= _
3, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
End If

Dim aTable As Table
Set aTable = Selection.Tables(1)

aTable.Select
aTable.AutoFormat Format:=wdTableFormatGrid5, ApplyBorders:= _
True, ApplyShading:=True, ApplyFont:=False, ApplyColor:=False, _
ApplyHeadingRows:=True, ApplyLastRow:=False,
ApplyFirstColumn:=False, _
ApplyLastColumn:=False, AutoFit:=True

aTable.Select

With Selection
.Rows.AllowBreakAcrossPages = False
.Paragraphs.Reset
.Font.Reset
.Style = ActiveDocument.Styles("Table Body Text")
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth075pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth075pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderTop)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth075pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderBottom)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth075pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderHorizontal)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth025pt
.Color = wdColorAutomatic
End With
With .Borders(wdBorderVertical)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth025pt
.Color = wdColorAutomatic
End With
.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
.Borders.Shadow = False
End With
With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth025pt
.DefaultBorderColor = wdColorAutomatic
End With

aTable.Rows(1).Select
With Selection
.Style = ActiveDocument.Styles("Table Heading")
.Rows(1).HeadingFormat = True
With .Shading
.Texture = wdTexture10Percent
.ForegroundPatternColor = wdColorAutomatic
.BackgroundPatternColor = wdColorAutomatic
End With
End With

aTable.AutoFitBehavior (wdAutoFitWindow)

End

Error:
MsgBox "The Template has been damaged. See Tech Support.", vbCritical

End Sub



On 9/10/06 4:37 AM, in article
1160332667.937426.263970@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:

Hi Beth

No. I wasn't seeing grey lines, but solid black ones that printed.
But I'll try AutoCorrect instead.

Many thanks

John
Beth Rosengard wrote:
Hi John,

I always use AutoCorrect instead of AutoText for these things (habit). I
just tried it with a table that had no borders at all and with bold in just
one cell. It reproduces fine.

I don't know why AutoText isn't working for you but try AutoCorrect and see
if it makes a difference.

By the way, when you get rid of table borders, they turn gray; they don't
actually disappear (except when you print). Could that be what you're
seeing?

--
***Please always reply to the newsgroup!***

Beth Rosengard
MacOffice MVP

Mac Word FAQ: <http://word.mvps.org/Mac/WordMacHome.html>
My Site: <http://www.bethrosengard.com>




On 10/8/06 8:18 AM, in article
1160320690.065921.236980@xxxxxxxxxxxxxxxxxxxxxxxxxxx, "john@xxxxxxxxxxxxx"
<john@xxxxxxxxxxxxx> wrote:

Thanks, Dailya. The reason I tried a macro (which MIcrosoft Support
recommended) was that I'd alrady tried Autotext. When I used this, it
produced borders although the table I'd selected had none, and (if I
remember correctly) it didn't have bold in one column as did the
selected table.

John


--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <john@xxxxxxxxxxx>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410


--B_3243265427_15662445
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 21194

<HTML>
<HEAD>
<TITLE>Re: Macro for table problems</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:10.0px'>Hi
Jo=
hn:<BR>
<BR>
You do NOT want to do the macro! &nbsp;Here's why... &nbsp;(Yes, it works :=
-))<BR>
<BR>
Sub Main()<BR>
'<BR>
' Insert or Format Table Macro<BR>
' Macro recorded 14/03/00 by John McGhie<BR>
'<BR>
' On Error GoTo Error<BR>
<BR>
Dim astyle As Style<BR>
Dim aDoc As String<BR>
Dim aTemplate As String<BR>
Dim x As Integer<BR>
Dim TabBodyText As Style<BR>
Dim TabHeading As Style<BR>
Dim TabBullet As Style<BR>
Dim tabNumber As Style<BR>
<BR>
<BR>
aTemplate =3D ActiveDocument.AttachedTemplate.FullName<BR>
aDoc =3D ActiveDocument.FullName<BR>
For Each astyle In ActiveDocument.Styles<BR>
&nbsp;&nbsp;&nbsp;&nbsp;If UCase(astyle.NameLocal) =3D UCase(&quot;Table
Body=
Text&quot;) Then Set TabBodyText =3D astyle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;If UCase(astyle.NameLocal) =3D UCase(&quot;Table
Bull=
et&quot;) Then Set TabBullet =3D astyle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;If UCase(astyle.NameLocal) =3D UCase(&quot;Table
Head=
ing&quot;) Then Set TabHeading =3D astyle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;If UCase(astyle.NameLocal) =3D UCase(&quot;Table
Numb=
er&quot;) Then Set tabNumber =3D astyle<BR>
Next astyle<BR>
<BR>
If TabBodyText Is Nothing Then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;ActiveDocument.Styles.Add Name:=3D&quot;Table Body
Te=
xt&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Set TabBodyText =3D
ActiveDocument.Styles(&quot;Table=
Body Text&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBodyText<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.AutomaticallyUpdate =3D
Fals=
e<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.BaseStyle =3D &quot;Body
Tex=
t&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NextParagraphStyle =3D
&quot=
;Table Body Text&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBodyText.Font<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Name =3D BodyFont<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Size =3D 10<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Bold =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Italic =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBodyText.ParagraphFormat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LeftIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.RightIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBefore =3D 2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBeforeAuto =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfter =3D 2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfterAuto =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LineSpacingRule =3D
wdLineSp=
aceSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdAlignParagra=
phLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.WidowControl =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepWithNext =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepTogether =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.PageBreakBefore =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.FirstLineIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.OutlineLevel =3D
wdOutlineLe=
velBodyText<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
End If<BR>
<BR>
If TabHeading Is Nothing Then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;ActiveDocument.Styles.Add Name:=3D&quot;Table
Heading=
&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Set TabHeading =3D ActiveDocument.Styles(&quot;Table
=
Heading&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabHeading<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.AutomaticallyUpdate =3D
Fals=
e<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.BaseStyle =3D &quot;Table
Bo=
dy Text&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NextParagraphStyle =3D
&quot=
;Table Heading&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabHeading.Font<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Name =3D HeadingFont<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Size =3D 10<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Bold =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Italic =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabHeading.ParagraphFormat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LeftIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.RightIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBefore =3D 2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBeforeAuto =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfter =3D 2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfterAuto =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LineSpacingRule =3D
wdLineSp=
aceSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdAlignParagra=
phLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.WidowControl =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepWithNext =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepTogether =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.PageBreakBefore =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.FirstLineIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.OutlineLevel =3D
wdOutlineLe=
velBodyText<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
End If<BR>
<BR>
If TabBullet Is Nothing Then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;ActiveDocument.Styles.Add Name:=3D&quot;Table
Bullet&=
quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Set TabBullet =3D ActiveDocument.Styles(&quot;Table
B=
ullet&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBullet<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.AutomaticallyUpdate =3D
Fals=
e<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.BaseStyle =3D &quot;Table
Bo=
dy Text&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NextParagraphStyle =3D
&quot=
;Table Bullet&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBullet.Font<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Name =3D BodyFont<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Size =3D 10<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Bold =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Italic =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With TabBullet.ParagraphFormat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LeftIndent =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.RightIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBefore =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBeforeAuto =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfter =3D 5<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfterAuto =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LineSpacingRule =3D
wdLineSp=
aceSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdAlignParagra=
phLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.WidowControl =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepWithNext =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepTogether =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.PageBreakBefore =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.FirstLineIndent =3D -17<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.OutlineLevel =3D
wdOutlineLe=
velBodyText<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;TabBullet.ParagraphFormat.TabStops.ClearAll<BR>
&nbsp;&nbsp;&nbsp;&nbsp;TabBullet.ParagraphFormat.TabStops.Add _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Position:=3D22,
Alignment:=3Dwd=
AlignTabLeft, Leader:=3D _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wdTabLeaderSpaces<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With ListGalleries(wdBulletGallery).ListTemplates(7=
).ListLevels(1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberFormat =3D
ChrW(61623)=
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TrailingCharacter =3D
wdTrai=
lingTab<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberStyle =3D
wdListNumber=
StyleBullet<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberPosition =3D 6<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdListLevelAli=
gnLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextPosition =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TabPosition =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.ResetOnHigher =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.StartAt =3D 1<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Font.Name =3D
&quot;Symbol&q=
uot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LinkedStyle =3D &quot;Table
=
Bullet&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
End If<BR>
<BR>
If tabNumber Is Nothing Then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;ActiveDocument.Styles.Add Name:=3D&quot;Table
Number&=
quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Set tabNumber =3D ActiveDocument.Styles(&quot;Table
N=
umber&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With tabNumber<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.AutomaticallyUpdate =3D
Fals=
e<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.BaseStyle =3D &quot;Table
Bu=
llet&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NextParagraphStyle =3D
&quot=
;Table Number&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With tabNumber.Font<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Name =3D BodyFont<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Size =3D 10<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Bold =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Italic =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With tabNumber.ParagraphFormat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LeftIndent =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.RightIndent =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBefore =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceBeforeAuto =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfter =3D 2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SpaceAfterAuto =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LineSpacingRule =3D
wdLineSp=
aceSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdAlignParagra=
phLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.WidowControl =3D True<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepWithNext =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.KeepTogether =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.PageBreakBefore =3D
False<BR=

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.FirstLineIndent =3D -17<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.OutlineLevel =3D
wdOutlineLe=
velBodyText<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;tabNumber.ParagraphFormat.TabStops.ClearAll<BR>
&nbsp;&nbsp;&nbsp;&nbsp;tabNumber.ParagraphFormat.TabStops.Add _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Position:=3D22,
Alignment:=3Dwd=
AlignTabLeft, Leader:=3D _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wdTabLeaderSpaces<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With ListGalleries(wdNumberGallery).ListTemplates(7=
).ListLevels(1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberFormat =3D
&quot;%1.&q=
uot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TrailingCharacter =3D
wdTrai=
lingTab<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberStyle =3D
wdListNumber=
StyleArabic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.NumberPosition =3D 6<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Alignment =3D
wdListLevelAli=
gnLeft<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextPosition =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TabPosition =3D 22<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.ResetOnHigher =3D 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.StartAt =3D 1<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LinkedStyle =3D &quot;Table
=
Number&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
End If<BR>
<BR>
If Not Selection.Information(wdWithInTable) Then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;ActiveDocument.Tables.Add Range:=3DSelection.Range,
N=
umRows:=3D5, NumColumns:=3D _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3,
DefaultTableBehavior:=3Dwd=
Word9TableBehavior, AutoFitBehavior:=3D _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wdAutoFitFixed<BR>
End If<BR>
<BR>
Dim aTable As Table<BR>
Set aTable =3D Selection.Tables(1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
aTable.Select<BR>
&nbsp;&nbsp;&nbsp;&nbsp;aTable.AutoFormat Format:=3DwdTableFormatGrid5,
Apply=
Borders:=3D _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True, ApplyShading:=3DTrue,
A=
pplyFont:=3DFalse, ApplyColor:=3DFalse, _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ApplyHeadingRows:=3DTrue,
App=
lyLastRow:=3DFalse, ApplyFirstColumn:=3DFalse, _<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ApplyLastColumn:=3DFalse,
Aut=
oFit:=3DTrue<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
aTable.Select<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With Selection<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Rows.AllowBreakAcrossPages=
=3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Paragraphs.Reset<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Font.Reset<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Style =3D
ActiveDocument.Sty=
les(&quot;Table Body Text&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderLeft)=
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth075pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderRight=
)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth075pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderTop)<=
BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth075pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderBotto=
m)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth075pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderHoriz=
ontal)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth025pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Borders(wdBorderVerti=
cal)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neStyle =3D wdLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Li=
neWidth =3D wdLineWidth025pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Co=
lor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Borders(wdBorderDiagonalDo=
wn).LineStyle =3D wdLineStyleNone<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Borders(wdBorderDiagonalUp=
).LineStyle =3D wdLineStyleNone<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Borders.Shadow =3D False<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With Options<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.DefaultBorderLineStyle =3D
w=
dLineStyleSingle<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.DefaultBorderLineWidth =3D
w=
dLineWidth025pt<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.DefaultBorderColor =3D
wdCol=
orAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
aTable.Rows(1).Select<BR>
&nbsp;&nbsp;&nbsp;&nbsp;With Selection<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Style =3D
ActiveDocument.Sty=
les(&quot;Table Heading&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Rows(1).HeadingFormat =3D
Tr=
ue<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Shading<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Te=
xture =3D wdTexture10Percent<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Fo=
regroundPatternColor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Ba=
ckgroundPatternColor =3D wdColorAutomatic<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>
<BR>
aTable.AutoFitBehavior (wdAutoFitWindow)<BR>
<BR>
End<BR>
<BR>
Error:<BR>
MsgBox &quot;The Template has been damaged. &nbsp;See Tech Support.&quot;, =
vbCritical<BR>
<BR>
End Sub<BR>
<BR>
<BR>
<BR>
On 9/10/06 4:37 AM, in article 1160332667.937426.263970@xxxxxxxxxxxxxxxxxxx=
roups.com, &quot;john@xxxxxxxxxxxxx&quot; &lt;john@xxxxxxxxxxxxx&gt; wrote:<=
BR>
<BR>
<FONT COLOR=3D"#0000FF">&gt; Hi Beth<BR>
&gt; <BR>
&gt; No. &nbsp;I wasn't seeing grey lines, but solid black ones that printe=
d.<BR>
&gt; But I'll try AutoCorrect instead.<BR>
&gt; <BR>
&gt; Many thanks<BR>
&gt; <BR>
&gt; John<BR>
&gt; Beth Rosengard wrote:<BR>
</FONT><FONT COLOR=3D"#008000">&gt;&gt; Hi John,<BR>
&gt;&gt; <BR>
&gt;&gt; I always use AutoCorrect instead of AutoText for these things (hab=
it). &nbsp;I<BR>
&gt;&gt; just tried it with a table that had no borders at all and with bol=
d in just<BR>
&gt;&gt; one cell. &nbsp;It reproduces fine.<BR>
&gt;&gt; <BR>
&gt;&gt; I don't know why AutoText isn't working for you but try AutoCorrec=
t and see<BR>
&gt;&gt; if it makes a difference.<BR>
&gt;&gt; <BR>
&gt;&gt; By the way, when you get rid of table borders, they turn gray; the=
y don't<BR>
&gt;&gt; actually disappear (except when you print). &nbsp;Could that be wh=
at you're<BR>
&gt;&gt; seeing?<BR>
&gt;&gt; <BR>
&gt;&gt; --<BR>
&gt;&gt; ***Please always reply to the newsgroup!***<BR>
&gt;&gt; <BR>
&gt;&gt; Beth Rosengard<BR>
&gt;&gt; MacOffice MVP<BR>
&gt;&gt; <BR>
&gt;&gt; Mac Word FAQ: &nbsp;<a
href=3D"http://word.mvps.org/Mac/WordMacHome.=
html">&lt;http://word.mvps.org/Mac/WordMacHome.html&gt;</a><BR>
&gt;&gt; My Site: &nbsp;<a
href=3D"http://www.bethrosengard.com";>&lt;http://w=
ww.bethrosengard.com&gt;</a><BR>
&gt;&gt; <BR>
&gt;&gt; <BR>
&gt;&gt; <BR>
&gt;&gt; <BR>
&gt;&gt; On 10/8/06 8:18 AM, in article<BR>
&gt;&gt; 1160320690.065921.236980@xxxxxxxxxxxxxxxxxxxxxxxxxxx, &quot;john@j=
ohnhands.com&quot;<BR>
&gt;&gt; &lt;john@xxxxxxxxxxxxx&gt; wrote:<BR>
&gt;&gt; <BR>
</FONT><FONT COLOR=3D"#FF0000">&gt;&gt;&gt; Thanks, Dailya. &nbsp;The reason
=
I tried a macro (which MIcrosoft Support<BR>
&gt;&gt;&gt; recommended) was that I'd alrady tried Autotext. &nbsp;When I =
used this, it<BR>
&gt;&gt;&gt; produced borders although the table I'd selected had none, and=
(if I<BR>
&gt;&gt;&gt; remember correctly) it didn't have bold in one column as did t=
he<BR>
&gt;&gt;&gt; selected table.<BR>
&gt;&gt;&gt; <BR>
&gt;&gt;&gt; John<BR>
</FONT><FONT COLOR=3D"#0000FF">&gt; <BR>
</FONT><BR>
-- <BR>
<BR>
Please reply to the newsgroup to maintain the thread. &nbsp;Please do not e=
mail me unless I ask you to.<BR>
<BR>
John McGhie &lt;john@xxxxxxxxxxx&gt;<BR>
Microsoft MVP, Word and Word for Macintosh. &nbsp;Business Analyst, Consult=
ant Technical Writer.<BR>
Sydney, Australia +61 (0) 4 1209 1410<BR>
</SPAN></FONT>
</BODY>
</HTML>


--B_3243265427_15662445--


--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <john@xxxxxxxxxxx>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410

Attachment: MakeTable.bas
Description: Binary data



Relevant Pages

  • Re: Macro for table problems
    ... You do NOT want to do the macro! ... Dim astyle As Style ... For Each astyle In ActiveDocument.Styles ... .LineStyle = wdLineStyleSingle ...
    (microsoft.public.mac.office.word)
  • Re: Macro for table problems
    ... You do NOT want to do the macro! ... Dim astyle As Style ... For Each astyle In ActiveDocument.Styles ... .LineStyle = wdLineStyleSingle ...
    (microsoft.public.mac.office.word)
  • Re: Tabellen drehen in VBA
    ... Dim z, s, i_s, i_z ... Selection.Collapse wdCollapseEnd ... .AutoFitBehavior wdAutoFitContent ... .Borders.OutsideLineStyle = wdLineStyleSingle ...
    (microsoft.public.de.word.vba)
  • Re: Tabellen drehen in VBA
    ... gibt es in VBA die Möglichkeit, Tabellen sozusagen nach "links" drehen? ... Sub dt ... Dim z, s, i_s, i_z ... .Borders.OutsideLineStyle = wdLineStyleSingle ...
    (microsoft.public.de.word.vba)