![]() |
#2
|
||||
|
||||
![]()
You can get the table and row from the selection
Code:
Dim oTable As Table Dim iRow As Long If Selection.Information(wdWithInTable) Then Set oTable = Selection.Tables(1) iRow = Selection.Rows(1).Index MsgBox "Selection in row " & iRow Else MsgBox "Not in Table" End If
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
NevilleT | Word VBA | 4 | 06-26-2016 12:17 AM |
![]() |
Marko | Word VBA | 2 | 10-18-2014 06:32 AM |
VBA to Find and Format Text string defined using Inputbox within selection | sistemalan | Word VBA | 7 | 10-03-2014 07:28 AM |
Excel 2013 Alt F doesn't block selection in find anymore | KatMagic | Excel | 0 | 03-15-2014 12:44 PM |
Automatic find replace after selection in dropdown | vsempoux | Word | 0 | 10-28-2009 08:45 AM |