Results 1 to 3 of 3
  1. #1
    Jeff M
    Guest

    Test for non-existent objects

    I want to make sure the current selection is in a Word table. If true then Selection.Tables contains info about the table, but if false, the object is non-existent. Testing for empty/null/nothing etc doesn't seem to work. What's the trick?

  2. #2
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Oregon, USA
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Test for non-existent objects

    Hi Jeff,

    if selection.Information(wdWithInTable) then
    oughtta do it.

    Chris

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Test for non-existent objects

    This might help <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=vb&Number=22839&page=0&view =collapsed&sb=5>Sample macro</A>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •