• Launching a website using VBA (Word 2002)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Launching a website using VBA (Word 2002)

    Author
    Topic
    #433270

    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

    Viewing 1 reply thread
    Author
    Replies
    • #1018763

      Try

      ActiveDocument.FollowHyperlink “http://www.thedx.co.uk”

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

      • #1018764

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

    • #1018856

      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

      • #1018885

        > 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))

    Viewing 1 reply thread
    Reply To: Launching a website using VBA (Word 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: