Results 1 to 4 of 4
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Opening html link from userform (WinXP/Word2003)

    Well, the title says it all, really! I need to give a user the opportunity of going to look at the guidance notes that go with a template on opening said template. Method of preference is a userbox saying 'Do you wish to view guidance notes?' with Yes & No buttons. Presumably a msgbox would do as well, if that's easier.

    How do I open a browser window and go to the correct html page from the Yes button, please?

    Many thanks
    Beryl M


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Opening html link from userform (WinXP/Word2003)

    Try this:

    If MsgBox("Do you wish to view guidance notes?", vbQuestion + vbYesno) = vbYes Then
    ActiveDocument.FollowHyperlink "file:///H:SpiritualGuidance.htm"
    End If

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening html link from userform (WinXP/Word2003)

    Thanks, Hans, I'll try that.
    Beryl M


  4. #4
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening html link from userform (WinXP/Word2003)

    Yup, that did it! Yet another snippet of code to make a note of in my archive of answers!
    Beryl M


Posting Permissions

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