#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    4
    Rep Power
    0

    Problem with word tables and visual basic


    Hi,
    I have a template in word which has a table with two rows

    the first has 10 columns and the second has 3

    When I write the following in visual basic : oDoc.Tables(1).rows.add

    It adds a row but with 3 columns.I want to add a row with 10 columns and the next that will add to have 3 columns,the next to have 10 and the one after that 3.
    -----
    |10|
    -----
    | 3 |
    -----
    |10|
    -----
    | 3 |
    -----
    |10|
    -----
    | 3 |
    -----
    |10|
    -----
    | 3 |
    -----
    ...
    and so on

    Is there any way I can do that without making each row progammatically?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    Dublin
    Posts
    413
    Rep Power
    14
    copy and paste - as you would manually

IMN logo majestic logo threadwatch logo seochat tools logo