Convert Table of Contents(TOC) into Text

J

John Schenkel

I have a table of contents that I asked questions about making page links to
each line in the TOC. I got some great suggestions, but the control click
issue is a problem for the client. Is there a way to convert a TOC to
straight text so I can do hyperlinks to specific bookmarks with a straight
rollover?

Thanks,
John schenkel
 
J

Jean-Guy Marcil

John Schenkel was telling us:
John Schenkel nous racontait que :
I have a table of contents that I asked questions about making page
links to each line in the TOC. I got some great suggestions, but the
control click issue is a problem for the client. Is there a way to
convert a TOC to straight text so I can do hyperlinks to specific
bookmarks with a straight rollover?

Thanks,
John schenkel

Are macros an option?
You could have a macro that forces the user setting to Click instead of
CTRL-Click, and then return the setting to its original state when the
document is closed.

Is security and activating macros an issue for your client?

If they are a problem, select the TOC and do CTRL-SHIFT-F9 to turn it into
plain text.
If I remember correctly, the hyperlinks will be still intact because those
are not fields (providing you used the "h" switch in the TOC as was
suggested in an other thread...), but they will default to blue underlined
test. If you want to change that, either manually change it or change the
Hyperlink style.


--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

John Schenkel

I did the ctrl click + shift + f9 and it converted the table into text, but
it didn't remember the /h bookmarks. Is there a way for it to remember or do
I have to highlight each line and create a hyperlink. Plus I would have to
create bookmarks for each page. Is this the only way to do this?

Thanks for all of your help!
John
 
J

Jean-Guy Marcil

John Schenkel was telling us:
John Schenkel nous racontait que :
I did the ctrl click + shift + f9 and it converted the table into
text, but it didn't remember the /h bookmarks. Is there a way for it
to remember or do I have to highlight each line and create a
hyperlink. Plus I would have to create bookmarks for each page. Is
this the only way to do this?

Sorry, my bad.

Whenever I have converted a TOC to text, I have always noticed that the text
was blue and underlined, like hypertext links.
But since I have never needed the hyperlinks, I never tested them. I have
always removed the hyperlink-style formatting and went on with my work. I
just took for granted that because of the visual aspect, they were
hyperlinks...

I see now that they are not.

Why can't your client use CTRL-Click like the rest of us?

If you must create the hyperlinks, normally a TOC is based on heading which
are accessible from the create hyperlink dialog, so it will not be that
bad... Select a TOC line, do CTRL-K, click on the Bookmark button to get a
list of heading, providing you used built-in heading styles (Heading 1 to
Heading 9) your headings will be listed.

If you used custom heading styles, then yes, you will have to insert
bookmarks first.


--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

John Schenkel

I think they are just lazy. I'm going to give them the CDRom with the ctrl
click TOC and tell them it is going to take me an extra day to convert it to
the way you just suggested. There are over 2000 pages, so it might take even
longer.

Thanks for your help!
John
 
J

Jean-Guy Marcil

John Schenkel was telling us:
John Schenkel nous racontait que :
I think they are just lazy. I'm going to give them the CDRom with
the ctrl click TOC and tell them it is going to take me an extra day
to convert it to the way you just suggested. There are over 2000
pages, so it might take even longer.

LOL, don't bring me into this!

How lazy can they be? Either change the options in Word, or use
CTRL-Click.... I do not know about them, but when I use my computer, the
hand that is not controlling the mouse is never that far from the keyboard!

But as they say, the client is always right! Or is he?!?

Good luck.

Just had a thought... If they are not going to edit the document anymore,
you can convert it to PDF from within Word and the TOC will become a
"single-click" deal...

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Carolin

Is there any reason why your client can't uncheck the Word setting under:
Tools>Options>Edit>Use Ctrl + Click to follow Hyperlink
 
J

John Schenkel

Jean-Guy,

Sorry for being a newbie, but if I wanted to create a Macro to turn
ctrl-click to click in the settings, how would I do that?

Thanks,
John
 
J

Jean-Guy Marcil

John Schenkel was telling us:
John Schenkel nous racontait que :
Jean-Guy,

Sorry for being a newbie, but if I wanted to create a Macro to turn
ctrl-click to click in the settings, how would I do that?

Basically, all you need is:

Application.Options.CtrlClickHyperlinkToOpen = False

But, personally, I do not like playing with user settings, unless they agree
to my code changing their settings and they want to keep those settings
after that point.
So, if I change a setting, I try to return it to its original state when
the document is closed.
This could be done with code like this in the ThisDocument module of the
template (or document, in which case the Document_New sub is not necessary):

'_______________________________________
Option Explicit

Private boolCTRLCick As Boolean
'_______________________________________
Private Sub Document_Close()

Application.Options.CtrlClickHyperlinkToOpen = boolCTRLCick

End Sub
'_______________________________________

'_______________________________________
Private Sub Document_New()

boolCTRLCick = Application.Options.CtrlClickHyperlinkToOpen
Application.Options.CtrlClickHyperlinkToOpen = False

End Sub
'_______________________________________

'_______________________________________
Private Sub Document_Open()

boolCTRLCick = Application.Options.CtrlClickHyperlinkToOpen
Application.Options.CtrlClickHyperlinkToOpen = False

End Sub
'_______________________________________

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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