How do I get the current page number of my selection in VB?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
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
 
Page Number

John,

Please send me the solution as I am also trying to find the selected/active page.

Thanks,
Kumar

=?Utf-8?B?Sm9obg==?= said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top