I have a code in VBA that worked perfectly for a long time. Suddenly it stopped working for no reason. Nothing has changed on my side.
I use it to download web pages
I had this same error: 6/30/2018
I'm running Excel on windows 7,
On a Mac, In Parallels.
This was a very simple fix.
Goto Control Panel,
Click Network and Internet,
Click Network and Sharing Center, (at the Bottom Left CLICK Internet Options)
Internet Properties Dialog Box will come up, Click the Advanced Tab
Scroll to bottom and turn on "Use TLS1.2" (Mine was already Set Prior to receiving the Error) Click Apply
Here is the link to the downloads need for the proper Windows OS Update file: http://www.catalog.update.microsoft.com/search.aspx?q=kb3140245
I downloaded and Installed the UpDate from Windows Explorer (File Manager) Restarted Windows
and ran the VBA. It ran perfectly
Thanks to Srinath Gudimetla see his link is below for full details: https://www.linkedin.com/pulse/working-vba-tls-protocol-srinath-gudimetla