Excel VBA: WebBrowser Control Is Not Working In Windows 10

kashif.special2005

Active Member
Joined
Oct 26, 2009
Messages
443
Hi,

I have a webbrowser control in a form, where a html files contents shows in it, it is working fine in windows 7, but I don't know it is not working in Windows 10.

Code Not Working:- below code fires on click event of a button

Code:
If Sheet1.CheckBoxes("chkMailBody").Value = 1 Then
    
    
    MailBody.WebBrowser1.Navigate "G:\Request.html"
    MailBody.Show
    
    'MailBody.WebBrowser1.Visible = True
    
End If

Code Working:- When I am running below code separately (On Run Forms Initialize Event Not From Button) Webbrowser is working fine and the content is showing in the webbrowser.

Code:
Private Sub UserForm_Initialize()
    Me.WebBrowser1.Navigate2 "G:\Request.html"
End Sub


Please help me to resolve this problem.

Thanks
Kashif
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi All,

Somehow I found the solution in Google and below is the steps to resolve this issue.

Go to Outlook Options > General. Then under "User Interface Options" for the setting "When using multiple displays" select the option "Optimize for compatibility"


Then restart outlook. The same option should be available in Excel too. Try and see if it works. It worked for me. I hope it works for you too.


Thanks
Kashif
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top