Move the cursor outside the table.

I use VB to write macros in Word. what i need to do if i am in the table i need to exit it. therefore if

x = Selection.Information(wdWithInTable) 

then I have to leave.

What is the code to move from a table?

+4
source share
1 answer

Well, it depends, of course, on where you want to move - before or after the table or somewhere else; your question is a bit vague.

This code will pull you out of the table and place the text cursor right behind it:

 Selection.Tables(1).Select Selection.Collapse WdCollapseDirection.wdCollapseEnd 
+9
source

All Articles