Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
John
 
Posts: n/a
Default How do I get the current page number of my selection in VB?

I'm trying to write a macro that will scan the tables in a document, exported
from Telelogic DOORS, and detect when the table has traversed across a page
boundary, so that I can split the table and insert a reference to the Table
Caption with "- Continued" appended. I can select the first cell of each row
in the table or select the entire row. How can I find out what page the
selected row is on? Any help is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default How do I get the current page number of my selection in VB?

You may get an answer here, but this NG is really for end users. For VBA
questions, as in one of the microsoft.public.word.vba.* NGs.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"John" wrote in message
...
I'm trying to write a macro that will scan the tables in a document,

exported
from Telelogic DOORS, and detect when the table has traversed across a

page
boundary, so that I can split the table and insert a reference to the

Table
Caption with "- Continued" appended. I can select the first cell of each

row
in the table or select the entire row. How can I find out what page the
selected row is on? Any help is greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
John
 
Posts: n/a
Default How do I get the current page number of my selection in VB?

Thanks Suzanne.
In the time it took to get your reply, I was able to figure it out on my
own. It's not intuitively obvious to the casual observer how to extract the
page number from the range you are selecting. If anyone is in need of this
function, let me know and I will email it to you. Thanks again.
John

"Suzanne S. Barnhill" wrote:

You may get an answer here, but this NG is really for end users. For VBA
questions, as in one of the microsoft.public.word.vba.* NGs.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"John" wrote in message
...
I'm trying to write a macro that will scan the tables in a document,

exported
from Telelogic DOORS, and detect when the table has traversed across a

page
boundary, so that I can split the table and insert a reference to the

Table
Caption with "- Continued" appended. I can select the first cell of each

row
in the table or select the entire row. How can I find out what page the
selected row is on? Any help is greatly appreciated.



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
Printing a current page in MS Word Trudy Microsoft Word Help 3 July 25th 08 10:13 PM
Word should always display current page number on screen FrustratedofWeybridge Microsoft Word Help 5 January 11th 06 08:12 PM
1st page turns into "odd" when # inserted tinhorn Page Layout 12 May 19th 05 01:18 PM
Page numbering in footers, Outside margin, Page Number + Number of Pages Eric G Page Layout 6 April 22nd 05 12:28 PM
How do I get rid of a page number on a Save As\ Text Only doc? Mike Whitehurst Microsoft Word Help 2 March 24th 05 01:17 PM


All times are GMT +1. The time now is 07:22 AM.

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"