add text to table rows 
Author Message
 add text to table rows

How can I add text to a row in a table with many cells in only one sentence?
I tryed sending tabs between the words and it doesn't work.
I know that there is another way that is with:
         .Selection.TypeText Text:=pintTabs
         .Selection.MoveRight unit:=wdCell
but I'm looking for a faster way

Thank you very much in advance,

Ronit Kadosh



Tue, 11 Dec 2001 03:00:00 GMT  
 add text to table rows
Hi Ronit,

The following construction works fairly fast:

With Selection
    .TypeText "one"
    .MoveRight Unit:=wdCell
    .TypeText "two"
    .MoveRight Unit:=wdCell
    .TypeText "three"
    .MoveRight Unit:=wdCell
    .TypeText "four"
    .MoveRight Unit:=wdCell
End With

You may also be able to use:

For i = 1 To 4
ActiveDocument.Tables(1).Cell(1, i).Range.InsertBefore "test" & i
Next i

Hope this helps
Regards,
Doug Robbins - Word MVP

Please post any response to the Newsgroups so that other may benefit
therefrom or contribute thereto.

Quote:
> How can I add text to a row in a table with many cells in only one
sentence?
> I tryed sending tabs between the words and it doesn't work.
> I know that there is another way that is with:
>          .Selection.TypeText Text:=pintTabs
>          .Selection.MoveRight unit:=wdCell
> but I'm looking for a faster way

> Thank you very much in advance,

> Ronit Kadosh




Wed, 12 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. adding a table row, without setting same defaults as previous row

2. row heights of table rows added by vba

3. table row text will not show after row insert

4. How to Create 2 column table and continue adding rows

5. Format of Rows Added to a Table

6. Adding Rows to a Table

7. Running a macro to add a row in a table

8. Add row to the end of a table

9. Adding row to table is Slooooooow!

10. Adding new rows to related tables on a dataset

11. Help adding Table Rows dynamically Please!

12. Adding blank row in table

 

 
Powered by phpBB® Forum Software