Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-13-2015, 03:19 PM
macropod's Avatar
macropod macropod is offline Include/Exclude Table(s) from OnEnter event Windows 7 64bit Include/Exclude Table(s) from OnEnter event 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of content to not include TOC as first section!? neuroscientist911 Word 4 11-19-2014 07:55 AM
Include/Exclude Table(s) from OnEnter event Docx to PDF: Exclude heading from TOC but include in bookmarks Lebber Word 8 12-04-2013 06:11 AM
Include/Exclude Table(s) from OnEnter event Include a table in landscape but keep footnote continuous prakash Word Tables 6 11-30-2013 04:09 PM
Include/Exclude Table(s) from OnEnter event VBA: Include Dynamic Sheet Name In Pivot Table Source Data ibrahimaa Excel Programming 2 04-28-2012 12:27 AM
Include headers in table of contents bwhight Word 1 10-10-2006 08:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft