btran007 Posted June 5, 2007 Share Posted June 5, 2007 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 advancebtran Link to comment Share on other sites More sharing options...
btran007 Posted June 6, 2007 Author Share Posted June 6, 2007 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 Link to comment Share on other sites More sharing options...
spacesurfer Posted June 11, 2007 Share Posted June 11, 2007 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. Link to comment Share on other sites More sharing options...
btran007 Posted June 12, 2007 Author Share Posted June 12, 2007 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").SelectEnd IfEnd Sub Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now