Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


btran007

Hyperlinks

4 posts in this topic

Hello Everyone,

I need your expertise. I can't seem to find anything on this subject. I want to open a hyperlink that corresponds to a Table of Content. This is the code when "Toggle Field Codes":

{HYPERLINK "C:\\Content_of_Inconsistencies.doc" \l "_Toc168799624"}

I want to use coding to open up that hyperlink. I have....

ActiveDocument.FollowHyperlink Address:="'file:C:\\Content_of_Inconsistencies.doc'" & " \l" & "'_Toc168799624'"

But it's not working. Can someone point me to the right direction?

Thank you in advance

btran

0

Share this post


Link to post
Share on other sites

Hello Everyone,

Does anyone have a clue at what I am talking about? Maybe I am not explaining it correctly. What I am looking for doesn't have to be a HYPERLINK, but any "JUMP" action. I just want to able to go to certain area of a WORD document using code, ie Bookmark.

Please provide some assistance.

btran

0

Share this post


Link to post
Share on other sites

Word has built-in Table of Content and indexing functionality. You can't use hyperlinks for TOC and indexes. Use Words TOC: File --> Insert --> Reference --> Index and Tables.

Read the help file for specifics.

0

Share this post


Link to post
Share on other sites

First of all, I have a word document opened with Table of Contents in Frame. In the Table of Contents in Frame, I have inserted checkboxes next to each hyperlink. I wasn't able to jump to the hyperlinks using code therefore I am trying Bookmarks. Below is the Macro for a checkbox but it's not working because the bookmark only exists in the main document and not in the frame. Attached is a screen capture of what I am trying to achieve. If I can define what frame the bookmarks belong to might work. I would appreciate any comments or assistance.

Private Sub CheckBox1_Click()

If CheckBox1.Value = True Then

ActiveDocument.Bookmarks("BM1").Select

End If

End Sub

post-141985-1181650344_thumb.jpg

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.