![]() |
|
#1
|
|||
|
|||
![]()
Try this:
I don't know how to do this without "on error" but note that in the code below the "on error" works only within the "Set" (because the "On Error Goto 0") line which will not undercover other errors in the code. Code:
Dim oTbl As Table On Error Resume Next Set oTbl = ActiveDocument.Tables(1) On Error GoTo 0 If Not oTbl Is Nothing Then Exists = "yes" Else Exists "No" End If
__________________
Backup your original file before doing any modification. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
set row object variable error | CLoos | Excel Programming | 6 | 03-10-2017 04:48 PM |
![]() |
zlodeh | Excel Programming | 1 | 02-24-2016 01:58 AM |
![]() |
Doug Needham | Excel Programming | 4 | 01-12-2015 10:54 PM |
![]() |
simstem | Word | 1 | 10-06-2012 08:44 PM |
XML parsing & Object variable not set (Error 91) | tinfanide | Excel Programming | 0 | 12-29-2011 08:43 AM |