Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

VBA access to Header references ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
richardchaven - 13 Feb 2006 20:56 GMT
I am writing a macro that translates Word documents to PmWiki format.

I want to convert cross-references to internal page links. I find no
information about any collection of the existing references. The only
information I find is about how to insert new references.

Any ideas ?
Peter Jamieson - 13 Feb 2006 21:12 GMT
Where is the specification of the "PmWiki format"? I looked at the website,
but there is no obvious pointer.

Peter Jamieson

>I am writing a macro that translates Word documents to PmWiki format.
>
[quoted text clipped - 3 lines]
>
> Any ideas ?
richardchaven - 14 Feb 2006 00:45 GMT
It's a basic Wiki.

It allows intra-page links (implimented as #labels), and I want to
convert ToC and index links.
Peter Jamieson - 14 Feb 2006 10:47 GMT
I have a feeling I'm missing the point here, but...
a. a ToC only really contains references to text if "use hyperlinks" was
specified when it was created, in which case you may be able to follow the
reference in the HYPERLINK fields, which should point to (hidden) bookmarks.
Otherwise, there are no references - except maybe page numbers - to
anything - there's just a copy of the entries (headings, TC entries) used to
generate the ToC and a such as a page number
b.an Index field also only references page numbers - it doesn't have
pointers to the individual { XE } fields.

Peter Jamieson

> It's a basic Wiki.
>
> It allows intra-page links (implimented as #labels), and I want to
> convert ToC and index links.
richardchaven - 16 Feb 2006 20:43 GMT
I've already done ToC; I'm looking for the Insert | Reference |
Cross-references. I want to be able to detect them in a Range and to
figure out what they refer to.

Cheers
Peter Jamieson - 19 Feb 2006 15:57 GMT
They are generally references to (hidden) bookmarks, aren't they?

Peter Jamieson

> I've already done ToC; I'm looking for the Insert | Reference |
> Cross-references. I want to be able to detect them in a Range and to
> figure out what they refer to.
>
> Cheers
richardchaven - 23 Feb 2006 19:05 GMT
That's it!

I had to do a bit of dancing around because they are Fields that
reference the bookmark, and while either the code ({ REF _R2343243}) or
the result ("Heading 1") appears as text, _both_ are in the Range (so
the character count does not equal the range length).

Thanks !
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.