the following snippet is taken from a macro I regulary run.
I would like to change this snippet to accommodate the following requirement.
Not only is the cursor to reside in a table, but the table is to be located on the last page of the current document.
Help is much appreciated. Thank you very much in advance.
If Not Selection.Information(wdWithInTable) Then
MsgBox ("The cursor does not reside in a a table!" & vbCrLf & _
"Please make sure that the cursor resides in a table!"), vbCritical, "Cursor does not reside in a table!"