This is the code am using for zoomed out web browser
Const OLECMDID_OPTICAL_ZOOM = 63
Const OLECMDEXECOPT_DONTPROMPTUSER = 2
Web1.ExecWB OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, CLng(35), vbNull
when i use the code i get the following runtime error:
-2147221248 (80040100): Automation Error
Any ideas?
Edited:
I use the code given by you. It works fine in debug mode once i take exe and run it shows the following error.
This only works once a document has loaded, then seems to persist for subsequent navigation.
If you attempt to change the optical zoom when there is no DOM document, error 80040100 occurs.
The code below simply sets zoom initially at the appropriate time;