View Single Post
 
Old 07-13-2015, 06:39 AM
warbird warbird is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jun 2015
Posts: 13
warbird is on a distinguished road
Default

If I read the example correctly, this is the part I'm interested in (along with the Dim statements).
Code:
 
Set CCtrlRng = CCtrl.Range
If CCtrlRng.Information(wdWithInTable) Then
Set TblRng = CCtrlRng.Tables(1).Range
i = .Range(0, TblRng.End).Tables.Count
If (i = 1) Or (i = .Tables.Count) Then Exit Sub
In my case it should look like This (?)
Code:
Set CCtrlRng = CCtrl.Range
If CCtrlRng.Information(wdWithInTable) Then
Set TblRng = CCtrlRng.Tables(1).Range
i = .Range(0, TblRng.End).Tables.Count
If (i = 1) Or (I < .Tables(12) Then Exit Sub
Thanks for your incredibly prompt response!
Reply With Quote