Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Printing a current page in MS Word | Microsoft Word Help | |||
Word should always display current page number on screen | Microsoft Word Help | |||
1st page turns into "odd" when # inserted | Page Layout | |||
Page numbering in footers, Outside margin, Page Number + Number of Pages | Page Layout | |||
How do I get rid of a page number on a Save As\ Text Only doc? | Microsoft Word Help |