View Single Post
  #2   Report Post  
Posted to microsoft.public.word.tables
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Formating first line of every cells in first column of word table.

What do you mean by 'format'?
What do you mean by 'convert'
What do you mean by 'first line'?

The following macro will locate the content of the first cell of each row in
turn and assign it to a range variable. You can then process that range to
do what you wish.

Dim oRng As Range
With ActiveDocument.Tables(1)
For i = 1 To .Rows.Count
Set oRng = .Rows(i).Cells(1).Range
oRng.End = oRng.End - 1
'orng is the content of the first cell of the row
Next i
End With


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





Sunil Pradhan wrote:
Trying to write a macro which can convert first line of every cells
in first column of word table. pls help