>All
>
>I'm trying to do the following: I want to create a table starting with 1 Row and 2 Columns. I only want to insert rows after the previously inserted row if the field from the database is not empty. I don't know how many rows I'll be needing because of the fact that I only want to insert if the field from the database is not empty.
Take a look at the Rows.Add method. You can use code like:
oTable = oDoc.Tables.Add(oRange,1,2)
* Fill in the first row
oRow = oTable.Rows.Add
* Now you have two and, as a bonus, the second row has the same formatting as the first.
Tamra
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement