Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

How can I determine presence insertion point into some table?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
avkokin - 17 Oct 2007 09:53 GMT
There is one macro which applies to table in which there is insertion
point. If insertion point there not exist (insertion point is there
out of table) then we is of error.
How can I determine is there is insertion point into any table or not?
Thank you!
Shauna Kelly - 17 Oct 2007 10:03 GMT
Hi

Try something like

   If Selection.Information(wdWithInTable) Then
       'do stuff
   Else
       'can't do this because we're not in a table
   End If

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word

> There is one macro which applies to table in which there is insertion
> point. If insertion point there not exist (insertion point is there
> out of table) then we is of error.
> How can I determine is there is insertion point into any table or not?
> Thank you!
avkokin - 17 Oct 2007 10:15 GMT
On Oct 17, 1:03 pm, "Shauna Kelly"
<ShaunaKe...@SendNoSpamToShaunaKelly.com> wrote:
> Hi
>
[quoted text clipped - 15 lines]
> > How can I determine is there is insertion point into any table or not?
> > Thank you!

Thank you Shauna!
It's very good work.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.