View Single Post
 
Old 09-02-2020, 01:14 PM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,471
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Look at the samples I provided.
  1. An Active-X control should never work in a .docx file. Period.
  2. The two are the same document. One is saved as .docx, the other as .docm.
  3. The shape with a hyperlink works in both.
  4. Do not have your bookmark covering the entire TOC. Perhaps the title?
  5. Look at the code for my ActiveX control:


Code:
Private Sub CommandButton1_Click()
    ActiveDocument.Bookmarks("Home").Select
    Selection.Collapse
End Sub

For your purposes, you do not want the bookmark / target, to remain selected after you use the button.
Reply With Quote