View Single Post
 
Old 05-10-2017, 04:17 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
If Selection.Tables(1).NestingLevel > 1 Then MsgBox "Your in a nested table"
lbl_Exit:
Exit Sub
End Sub

There is a little on ranges of selection here in the heading "Learn to love ranges"

http://gregmaxey.com/word_tip_pages/vba_basics.html
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote