Results 1 to 6 of 6

Thread: Office 2015 VBA question webbrowser navigate controller.

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2016
    Posts
    3

    Question Office 2015 VBA question webbrowser navigate controller.

    Hi, can someone help me with the below vba issue I am facing. I have been trying for the last few hours but in vain.

    I am trying to open the below two urls in webbrowser controller in excel.

    1. http://dtm.adobe.com
    2. http://optimizely.com

    here is my code:
    Sheet1.webBrowser1.Navigate("http://dtm.adobe.com")


    Some reason the pages are not loading completely, it appears to me that the css and js files from aws cloudfront are not downloading.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Office 2015 VBA question webbrowser navigate controller.

    the webbrowser control may be to old for some web pages or scripts

    do the pages load completely in internet explorer?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2016
    Posts
    3

    Re: Office 2015 VBA question webbrowser navigate controller.

    Quote Originally Posted by westconn1 View Post
    the webbrowser control may be to old for some web pages or scripts

    do the pages load completely in internet explorer?
    Thanks westconn1 for your response.


    Yes, the pages load perfectly fine in internet explorer. I defined variables and added headers but still no luck.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Office 2015 VBA question webbrowser navigate controller.

    what are you trying to do? do you really need to use a webbrowser control, or can you achieve the same result by automating internet explorer
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2016
    Posts
    3

    Re: Office 2015 VBA question webbrowser navigate controller.

    Quote Originally Posted by westconn1 View Post
    what are you trying to do? do you really need to use a webbrowser control, or can you achieve the same result by automating internet explorer
    Thanks again, westconn1

    I will send this excel file to different people and make them update the forms. Dont' want to show them the internet explorer opens and closed in front of them. sorry for being dumb, I am completely new to this.

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Office 2015 VBA question webbrowser navigate controller.

    to show them the internet explorer opens and closed in front of them
    unless you make it visible they will not see the internet explorer at all
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width