Home > Software engineering >  Consult: WORD VBA, how to determine when the current in which form and judgment in the last line?
Consult: WORD VBA, how to determine when the current in which form and judgment in the last line?

Time:10-06

WORD VBA, masters, there are two problems with instruction:

1, at the same time there are multiple forms, is in turn the table (1), table (2), table (3), which is how to determine the current cursor where a table? Or how to get the current cursor form index number (index value, that is, the table behind the expansion of the 1, 2, 3), I now expedient method is to use Selection. The Tables (1) Range. The Start statements, but in this statement value is often change, so bad to use,

2, how to judge whether the current cursor in the last line of the specified form?

Sincerely thanks for your attention and reply!

CodePudding user response:

The answer to a question I found 2,,,
If Selection. Information (wdStartOfRangeRowNumber) & lt;> ActiveDocument. Tables (2). Rows. Count Then

The first problem is still to be solved, but could not find online,,, please each master,
  •  Tags:  
  • VBA
  • Related