Reputation: 91
Private Sub CommandButton1_Click()
WebBrowser1.Navigate ("https://www.bing.com")
End Sub
I'm trying to embed a local html file as a web object in power point. For the above link the code is working fine, but when I replace it with a local file, the nothing is displayed.
Upvotes: 1
Views: 1698
Reputation: 11755
Local files don't use http://
they use file:///
so something like:
file:///c:/test/test.html
Take notice of the 3 slashes after file:
(they cannot be backslashes like file paths usually are.)
Upvotes: 2