Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    May 2001
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Launching a website using VBA (Word 2002)

    I am trying to launch a website directly from MS Word and am having difficulty with the code. Could someone please point me in the right direction.

    The website I am trying to launch is http://www.thedx.co.uk/.

    Thanks in advance for any help

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

    Re: Launching a website using VBA (Word 2002)

    Try

    ActiveDocument.FollowHyperlink "http://www.thedx.co.uk"

    Note: a document must be open for this to work.

  3. #3
    Star Lounger
    Join Date
    May 2001
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Launching a website using VBA (Word 2002)

    Thanks Hans - been tearing my hair out and it is so simple!!!!

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Launching a website using VBA (Word 2002)

    If you're wanting to take things further, or get a bit fancier, you could consider using the WebBrowser Control in your VBA code.

    Alan

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Launching a website using VBA (Word 2002)

    > consider using the WebBrowser Control in your VBA code
    I must say that responding to a post via Word 2000 is a feelingly neat trick for the first day of the month.

    Thanks! (You've just ruined my long weekend (grin))

Posting Permissions

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