Index positioning on a Table

  • Thread starter Ing. Miguel Márquez
  • Start date
I

Ing. Miguel Márquez

Hi there,

I´m programming an invoice word document using Visual Studio Tools for
Office 2005 and C#.
I've created an actions pane that inserts book details on the details table
inside the word document.
I need to know the index of the row that actually has the focus, in order to
insert a new item or delete the current item.

How can I do this?

Thanks for your help folks
 
D

Doug Robbins - Word MVP

This is one case where using the Selection object is probably OK

Selection.Rows(1)

will refer to the row in which the selection is located.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
I

Ing. Miguel Márquez

Hi,

Actually your post gave me a clue.

Actually i've found how to retrieve the index, I used:

Globals.ThisDocument.Application.Selection.Rows.First.Index

And this retrieves the current index on the details table.

Thank you very much for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top