Determine page index of a frame object

G

Greg

I have an rtf document that was created from a Crystal Report and I
need to extract the data. However, all the data is in individual
frames on the pages so there was no easy cut-n-paste into Excel
option. I am building a small utility that is looping through each
frame object in the doc and based on the frames position, capturing
the data into arrays to output to a csv file. So far so good, but I
need to be able to determine the page number of the page that the
frame is on.

So if I have this:

Dim x as frame
for each x in thisdocument
msgbox "Page number is: " & ________
next

How do I fill in the blank?

Thanks in advance for any assistance. Also, this is a little out of
my normal type development work, so if I'm in the wrong group, just
let me know.
 
D

Doug Robbins - Word MVP

Check out the Selection.Information property.

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

Greg

Perfect! Thank you so much for your help!


Check out the Selection.Information property.

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










- Show quoted text -
 

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

Top