A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing paragraph format in table cell



 
 
Thread Tools Display Modes
  #1  
Old November 30th, 2009, 06:17 PM posted to microsoft.public.word.newusers
christophercbrewster via OfficeKB.com
external usenet poster
 
Posts: 143
Default 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  
Old November 30th, 2009, 06:53 PM posted to microsoft.public.word.newusers
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default 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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.