Use
CreateObject("MSXML2.ServerXMLHTTP.6.0")
The standard request fired from a local machine forbids access to sites that aren’t trusted by IE. MSXML2.ServerXMLHTTP.6.0
is the server-side object, that doesn’t perform those checks.
More Related Contents:
- How can I automate Save as dialog box in IE11 using VBA?
- Why Use Integer Instead of Long?
- Loop through files in a folder using VBA?
- Wait for Shell to finish, then format cells – synchronously execute a command
- How can Excel VBA open file using default application
- Run same excel macro on multiple excel files
- how to detect whether VBA excel found something?
- VBA : save a file with UTF-8 without BOM
- Excel VBA “Method ‘Document’ of object ‘IWebBrowser2’ failed”
- Determine if cell contains data validation
- VBA – Range to jpg picture
- Making VBA Form TextBox accept Numbers only (including +, – and .)
- VBA Convert date to week number
- Inserting an Online Picture to Excel with VBA
- Change length of For loop while in the loop
- VBA – Run Time Error 1004 ‘Application Defined or Object Defined Error’
- Consolidating worksheets into one
- Add a “CC recipient” to Outlook 2010 VBA
- How do I sort a collection?
- TextJoin UDF For Excel 2013
- Open an Excel file from SharePoint site
- In Excel VBA, what is the way to check if the web page is fully loaded?
- Excel Useform: How to hide application but have icon in the taskbar
- Reading Web Pages using Excel VBA
- How can I automatically populate the VBA Editor with line numbers?
- VBA hash string
- Debugging an Outlook 2007 script fired by a rule
- How do I activate a specific workbook and a specific sheet?
- Start VBA macro when editing a cell
- VBA Run-time error 438 appears when “paste” runs