Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Atlanta, Georgia, USA
    Posts
    274
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open a website when a word document opens (2000)

    I'm trying to get word to open a web page when the document is opened.
    I don't want the user to have to click on a button.
    I know this is an odd way to distribute a link but thats what my employer needs.
    I tried this to no avail.
    Private Sub Document_Open()
    ActiveDocument.FollowHyperlink "http://www.mysite.com"
    End Sub

    Any suggestions?
    Thanks,
    Scott

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

    Re: Open a website when a word document opens (2000)

    1) The Document_Open procedure MUST be in the ThisDocument module, not in a module created by selecting Insert | Module in the Visual Basic Editor.

    2) If macro security is set to High, the document must be digitally signed; if macro security is set to Medium, the user must click Yes in the macro warning that appears when the document is opened.

Posting Permissions

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