Hi Greg
Thanks for your help. I learned a few things aside from the questions I asked. I had created a function to determine if I was in a table using Selection.Information(wdWithInTable) so just use the function over and over. I have about four or five functions to determine if the selection is a table, text, a line etc. Numbering a table is about one of twenty custom functions I am building.
I have used vba extensively in Access and some in MS Project but am new to Word. I have read recently advice not to use selection unless you have to. Not sure why. Maybe you could point me to some information as to why to avoid selection.
One thing I have to work out is how to tell if I am in nested table, but will work on that. I am sure I have seen something about identifying a nested table.
Will look at your site too. You obviously know Word vba inside out. Thanks again.
|