V
Vale
Hi!
I would count how many tables are present in each page of my document Word
I tried this:
Dim pagine As Integer = Wordoc.ActiveWindow.ActivePane.Pages.Count
Dim p As Integer
Dim sel As Word.Range
sel = Wordoc.Bookmarks("\Page").Range
Dim tabelle As Integer
For p = 1 To pagine
tabelle = sel.Tables.Count
Tab_box.Text = ("Pagina" & p & "tabelle" & tabelle)
sel = sel.GoToNext(WdGoToItem.wdGoToPage)
Next
but i have problems to go to the next page
the count of the first page is right the second gives me 1 table in the
second page (When there are 9 tables) i don't understand why
Help me please!
Thanks!
I would count how many tables are present in each page of my document Word
I tried this:
Dim pagine As Integer = Wordoc.ActiveWindow.ActivePane.Pages.Count
Dim p As Integer
Dim sel As Word.Range
sel = Wordoc.Bookmarks("\Page").Range
Dim tabelle As Integer
For p = 1 To pagine
tabelle = sel.Tables.Count
Tab_box.Text = ("Pagina" & p & "tabelle" & tabelle)
sel = sel.GoToNext(WdGoToItem.wdGoToPage)
Next
but i have problems to go to the next page
the count of the first page is right the second gives me 1 table in the
second page (When there are 9 tables) i don't understand why
Help me please!
Thanks!