Home |
Search |
Today's Posts |
#1
|
|||
|
|||
VBA command to return the active cell in a Word table
In Word 2002 (XP) how can you determine via VBA what cell in a Word table has
the cursor in it? |
#2
|
|||
|
|||
On Sat, 18 Jun 2005 15:44:02 -0700, "Arlan"
wrote: In Word 2002 (XP) how can you determine via VBA what cell in a Word table has the cursor in it? Dim RowNum As Long, ColNum As Long If Selection.Information(wdWithInTable) Then RowNum = Selection.Cells(1).RowIndex ColNum = Selection.Cells(1).ColumnIndex MsgBox "Row = " & RowNum & vbCr & _ "Column = " & ColNum Else MsgBox "Not in table" End If -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Please give us REVEAL CODES like WORD PERFECT not reveal codes in. | Microsoft Word Help | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
Is there a Fast Search in Word? | New Users | |||
how can you create quickwords in MS Office Word 2003 | Microsoft Word Help | |||
Converted document from WordPerfect. New footnotes are not being. | Microsoft Word Help |