Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Edit Hyperlink dialog (Word97/NT)

    Hi

    I want to use Dialogs(wdDialogEditHyperlink), but wdDialogEditHyperlink doesn't exist. Is it there under a different name?

    To give some context, I'm writing a macro to check all the hyperlink fields in my Word document and find out if any are pointing to a drive (rather than the web).

  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: Edit Hyperlink dialog (Word97/NT)

    Try Dialogs(wdDialogInsertHyperlink). If the insertion point is in a hyperlink, the dialog title changes from Insert to Edit.

    Disclaimer: only checked on Word 2002 (Office XP).

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Edit Hyperlink dialog (Word97/NT)

    Hi Jefferson

    When I try it, "Dialogs(wdDialogInsertHyperlink).Display" gives me "variable not defined"???

    ADDED LATER: Ah, I've just noticed your "Disclaimer: only checked on Word 2002 (Office XP)". Looks like 97 didn't have it.

    Thanks
    Dale

  4. #4
    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: Edit Hyperlink dialog (Word97/NT)

    Did Word 97 support hyperlinks? I can't remember... pathetic, eh? If so, another possibility is to "execute" the toolbar button which calls up the dialog. One usually does this with the Id of the control. See <post#=162553>post 162553</post#> for generic information on what I mean. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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