Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Ing. Miguel Márquez Ing. Miguel Márquez is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default 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   Report Post  
Posted to microsoft.public.word.tables
Ing. Miguel Márquez Ing. Miguel Márquez is offline
external usenet poster
 
Posts: 2
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table Positioning Stephen Haley Page Layout 1 August 10th 06 07:19 PM
Positioning Table without disturbing paragraph Lance118 Tables 2 April 5th 06 04:57 PM
Table Positioning Help PLEASE!!! Bryan Bloom Tables 1 March 21st 06 08:47 AM
Positioning table on the page Jo Tables 2 December 22nd 05 04:53 PM
Positioning a table Matt Baretich Tables 7 January 5th 05 10:51 PM


All times are GMT +1. The time now is 06:57 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"