View Single Post
  #4   Report Post  
Jean-Guy Marcil
 
Posts: n/a
Default

Ed was telling us:
Ed nous racontait que :

Thank you! I never expected to get 3 different ways to do the same
thing!


In fact, 2 ways... Greg and Helmut's ways are the same, it is just that Greg
wrapped it up in a more complete sub.

My fault, I forgot about
Selection.Information(wdEndOfRangeRowNumber)
which is not bothered by merged cells (But you still have to consider that
in your code, unless you know for a fact that the table cannot contain
merged cells).

Also, remember that if many cells are selected,
Selection.Information(wdEndOfRangeRowNumber)
gives you the bottom right cell index, my clumsier method gives you the top
left cell.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
ISTOO
Word MVP site:
http://www.word.mvps.org