Information générale
Catégorie:
COM/DCOM et OLE Automation
>Thats great, but then how would I know the table no. of this bookmarked table, or how would I reference the table once I found the bookmark?
I just took a look at the code where I mixed bookmarks and tables and I see that I wasn't using the bookmarks to find the tables, but to keep track of page numbers and things.
However, what you could do is make the table itself the bookmark and then you can get a reference to it without needing to know what number it is.
If you highlight the whole table and set a bookmark on it, say, called "MyTable," then you can get your hands on the table like this:
oTable = oDocument.Bookmarks["MyTable"].Range
Tamar
Précédent
Suivant
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