Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
Index positioning on a Table
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 -- Ing. Miguel Márquez |
#2
Posted to microsoft.public.word.tables
|
|||
|
|||
Index positioning on a Table
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 "Ing. Miguel Márquez" wrote in message ... 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 -- Ing. Miguel Márquez |
#3
Posted to microsoft.public.word.tables
|
|||
|
|||
Index positioning on a Table
Hi,
Actually your post gave me a clue. Actually i've found how to retrieve the index, I used: Globals.ThisDocument.Application.Selection.Rows.Fi rst.Index And this retrieves the current index on the details table. Thank you very much for your help -- Ing. Miguel Márquez "Doug Robbins - Word MVP" wrote: 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 "Ing. Miguel Márquez" wrote in message ... 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 -- Ing. Miguel Márquez |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Table Positioning | Page Layout | |||
Positioning Table without disturbing paragraph | Tables | |||
Table Positioning Help PLEASE!!! | Tables | |||
Positioning table on the page | Tables | |||
Positioning a table | Tables |