Results 1 to 3 of 3
  1. #1
    drb
    Guest

    Show hyperlink dialog using VBA

    Is it possible using VBA to show the "Insert hyperlink" dialog in Word 97? The usual Show method doesn't seem to be available, presumably because the dialog is not a Word dialog but an Office dialog.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Show hyperlink dialog using VBA

    I have 2000, and this works, but couldn't say what is happening in 97:

    Sub aTest()
    With Dialogs(wdDialogInsertHyperlink)
    .Show
    End With
    End Sub

  3. #3
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Show hyperlink dialog using VBA

    The following code should work with Word 97:

    Sub ShowHLinksDialog()
    CommandBars(1).Controls("Hyper&link...").Execute
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •