Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changing paragraph format in table cell
[This is a "sequel" to my previous question but is a separate problem.]
When a table cell is selected, I need to do the equivalent of Paragraph Format on the cell, but can't make it work. My best try follows. The loop needs to format the second cell in each row. With ActiveDocument.Tables(1) For i = 1 To .Rows.Count .Rows(i).Cells(2).Range.ParagraphFormat.FirstLineI ndent = InchesToPoints(0) Next i End With Suggestions appreciated. -- Christopher Brewster Lockheed Martin, Eagan MN Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...neral/200911/1 |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changing paragraph format in table cell
As far as I can tell, it's working--in the sense that the code sets the
first line indent to zero. If you are trying to clear all indentation from the text in the cells, you will have to set LeftIndent to zero as well. -- Stefan Blom Microsoft Word MVP "christophercbrewster via OfficeKB.com" u3143@uwe wrote in message news:9fe639e3a8da4@uwe... [This is a "sequel" to my previous question but is a separate problem.] When a table cell is selected, I need to do the equivalent of Paragraph Format on the cell, but can't make it work. My best try follows. The loop needs to format the second cell in each row. With ActiveDocument.Tables(1) For i = 1 To .Rows.Count .Rows(i).Cells(2).Range.ParagraphFormat.FirstLineI ndent = InchesToPoints(0) Next i End With Suggestions appreciated. -- Christopher Brewster Lockheed Martin, Eagan MN Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...neral/200911/1 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
changing format of one cell changes every cell and other tables? | Tables | |||
read table cell per paragraph | Tables | |||
'keep with next' paragraph within a cell in a Table | Tables | |||
paragraph border suppressed in table cell | Tables | |||
Changing the format of text in a cell | Tables |