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.
Doug Robbins - Word MVP - 29 Apr 2007 19:57 GMT
Check out the Selection.Information property.

Signature
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
>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
[quoted text clipped - 17 lines]
> my normal type development work, so if I'm in the wrong group, just
> let me know.
Greg - 30 Apr 2007 15:32 GMT
Perfect! Thank you so much for your help!
On Apr 29, 1:57 pm, "Doug Robbins - Word MVP"
<d...@REMOVECAPSmvps.org> wrote:
> Check out the Selection.Information property.
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -