RE: Getting out of a table in VBA

Subject: RE: Getting out of a table in VBA
From: "Weissman, Jessica" <WeissmanJ -at- abacustech -dot- com>
To: Larry Landis <lawrence_landis -at- yahoo -dot- com>, "techwr-l -at- lists -dot- techwr-l -dot- com" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Wed, 20 Jul 2011 12:32:55 -0400

And here is a simple and efficient method. You can add a line that collapses the selection before moving it if you like.

Sub moveItOnOutBetter()
If Selection.Information(wdWithInTable) = True Then
Selection.EndOf unit :=wdTable, Extend :=wdMove
Selection.Move unit :=wdLine, Count := 2
End If
End Sub

- Jessica
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Create and publish documentation through multiple channels with Doc-To-Help.
Choose your authoring formats and get any output you may need. Try
Doc-To-Help, now with MS SharePoint integration, free for 30-days.
http://www.doctohelp.com

---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.

Please move off-topic discussions to the Chat list, at:
http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat


References:
Getting out of a table in VBA: From: Larry Landis
RE: Getting out of a table in VBA: From: Weissman, Jessica

Previous by Author: RE: Getting out of a table in VBA
Next by Author: RE: Evaluation Process - HATs
Previous by Thread: RE: Getting out of a table in VBA
Next by Thread: Re: Is Adobe InDesign good for "write-once-use-many" ?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads