-
Aug 11th, 2016, 03:36 AM
#1
Thread Starter
New Member
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.
-
Aug 11th, 2016, 06:06 AM
#2
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
-
Aug 11th, 2016, 09:33 AM
#3
Thread Starter
New Member
Re: Office 2015 VBA question webbrowser navigate controller.
Originally Posted by westconn1
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.
-
Aug 11th, 2016, 04:19 PM
#4
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
-
Aug 12th, 2016, 01:39 AM
#5
Thread Starter
New Member
Re: Office 2015 VBA question webbrowser navigate controller.
Originally Posted by westconn1
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.
-
Aug 12th, 2016, 05:19 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|