Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jun 2001
    Location
    Vancouver, Br. Columbia
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have the following code to open a web page:
    Dim IE
    Set IE = CreateObject("internetexplorer.application")
    mySTR = "http://MyWebPage"
    IE.Navigate mySTR

    The code works if I run it from vba - it opens the page on top of Word. But
    if I assign it to a QAT or Ribbon button, it opens the page but leaves it
    minimized.

    How can I get it to open on top of Word?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    What happens if you use

    Activedocument.FollowHyperlink "http://MyWebPage"

  3. #3
    Star Lounger
    Join Date
    Jun 2001
    Location
    Vancouver, Br. Columbia
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by HansV View Post
    What happens if you use

    Activedocument.FollowHyperlink "http://MyWebPage"
    So simple, why didn't I think of that...thanks so much...I just added code to open a blank doc if none were open and it works perfectly.

Posting Permissions

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