Turning off outline in a row

Z

zSplash

My code adds a row to a table. The table is outlined. I want my newly
added row to not be outlined, yet the rest of the table to remain outlined.
How can I "turn off" the outlining for that one single row? (I've looked at
ListString, ListFormat, OutlineLevel, and anything else I could think of, to
no avail. It can't be as hard as I'm making it!!)

TIA
 
H

Helmut Weber

Hi zSplash,

like this:

Sub Test456()
Dim oTbl As Table
Set oTbl = ActiveDocument.Tables(1)
With oTbl
.Rows.Add
.Rows.Last.Range.ListFormat.RemoveNumbers
End With
End Sub


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
Z

zSplash

Helmut!! You made my day! (It seems so simple when one knows what to do!)

Thanks so much, and have a wonderful weekend!!

st.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top