Thread: [Solved] VBA scripting / table
View Single Post
 
Old 08-21-2015, 12:58 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Without access to the document it is difficult to test, but all seems to revolve around
Code:
yy = ActiveDocument.Tables.Count
i.e. the last table in the document. If you want process a different table e.g. the first table in the document, you need to address that table here. e.g.
Code:
yy = ActiveDocument.Tables(1)
What the effect of the bookmarks in the document might be I cannot say.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote