View Single Post
 
Old 07-13-2015, 03:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,471
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your implementation suggests you want to exclude tables 1 - 11. In that case, you should use:
If i < 12 Then Exit Sub
However, your first post said:
Quote:
a word (10) document with 17 tables in it. I want to run an OnEnter event that only applies to tables 2, 4, 5, 6, 8, 9, 10,& 11. There is no data or active content in tables 3 & 7
In that case, you should use:
If (i = 1) Or (i = 3) Or (i = 7) Or (i >11) Then Exit Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote