Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Tables / April 2007

Tip: Looking for answers? Try searching our database.

Index positioning on a Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ing. Miguel Márquez - 29 Apr 2007 05:42 GMT
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
Signature

Ing. Miguel Márquez

Doug Robbins - Word MVP - 29 Apr 2007 15:07 GMT
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.

Signature

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

> Hi there,
>
[quoted text clipped - 10 lines]
>
> Thanks for your help folks
Ing. Miguel Márquez - 30 Apr 2007 19:52 GMT
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
Signature

Ing. Miguel Márquez

> This is one case where using the Selection object is probably OK
>
[quoted text clipped - 16 lines]
> >
> > Thanks for your help folks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.